diff options
author | Simo Sorce <simo@redhat.com> | 2014-01-24 15:57:28 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-01-24 17:31:56 -0500 |
commit | 47ff1fb4cd7a6c416c93246decacd19628b232c3 (patch) | |
tree | 5ccd86107dc53e0f6a279c8458022dd252bb032c /ipsilon/util | |
parent | eecd7248cf68418e4248d37303d58334ea7e8eb8 (diff) | |
download | ipsilon-47ff1fb4cd7a6c416c93246decacd19628b232c3.tar.gz ipsilon-47ff1fb4cd7a6c416c93246decacd19628b232c3.tar.xz ipsilon-47ff1fb4cd7a6c416c93246decacd19628b232c3.zip |
Fix Imports
Based on patches by Petr Voborni
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/util')
-rwxr-xr-x | ipsilon/util/page.py | 4 | ||||
-rwxr-xr-x | ipsilon/util/user.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ipsilon/util/page.py b/ipsilon/util/page.py index 15cbed0..a99ece8 100755 --- a/ipsilon/util/page.py +++ b/ipsilon/util/page.py @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from util import user +from ipsilon.util.user import User import cherrypy def protect(): @@ -37,7 +37,7 @@ class Page(object): def __call__(self, *args, **kwargs): self.username = cherrypy.session.get('user', None) - self.user = user.User(self.username) + self.user = User(self.username) if len(args) > 0: op = getattr(self, args[0], None) diff --git a/ipsilon/util/user.py b/ipsilon/util/user.py index 1241340..3b58724 100755 --- a/ipsilon/util/user.py +++ b/ipsilon/util/user.py @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from util import data +from ipsilon.util.data import Store class Site(object): def __init__(self, value): @@ -35,7 +35,7 @@ class User(object): self.name = username def _get_user_data(self, username): - store = data.Store() + store = Store() return store._get_user_preferences(username) @property |