diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-09 14:07:33 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-09 14:07:33 +0200 |
commit | ab658ba2f1993ec5abd637eddedeff28b8ea6535 (patch) | |
tree | 9d4a4edad3918de1eb0b16a6da2404762251609f /pyload | |
parent | fixed ws handler (diff) | |
download | pyload-ab658ba2f1993ec5abd637eddedeff28b8ea6535.tar.xz |
fixed last commit
Diffstat (limited to 'pyload')
-rw-r--r-- | pyload/remote/wsbackend/AbstractHandler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/remote/wsbackend/AbstractHandler.py b/pyload/remote/wsbackend/AbstractHandler.py index cad749ff8..842d87473 100644 --- a/pyload/remote/wsbackend/AbstractHandler.py +++ b/pyload/remote/wsbackend/AbstractHandler.py @@ -19,7 +19,7 @@ from mod_pywebsocket.msgutil import send_message from mod_pywebsocket.util import get_class_logger -from pyload.Api import User +from pyload.Api import UserData from pyload.remote.json_converter import loads, dumps @@ -122,11 +122,11 @@ class AbstractHandler: if len(args) == 1: s = self.load_session(args) if s: - user = User(uid=s.get('uid', None)) + user = UserData(uid=s.get('uid', None)) else: s = self.api.checkAuth(*args, **kwargs) if s: - user = User(uid=s.uid) + user = UserData(uid=s.uid) if user: req.api = self.api.withUserContext(user.uid) |