fix host id lookup for anonymous sessions
This commit is contained in:
parent
642bcb3bd9
commit
daf0764ad3
1 changed files with 4 additions and 4 deletions
|
|
@ -71,6 +71,10 @@ class Session(object):
|
|||
self.exclusive = False
|
||||
self.lockerror = None
|
||||
self.callnum = None
|
||||
# we look up perms, groups, and host_id on demand, see __getattr__
|
||||
self._perms = None
|
||||
self._groups = None
|
||||
self._host_id = ''
|
||||
#get session data from request
|
||||
if args is None:
|
||||
environ = getattr(context, 'environ', {})
|
||||
|
|
@ -204,10 +208,6 @@ class Session(object):
|
|||
self.master = session_data['master']
|
||||
self.session_data = session_data
|
||||
self.user_data = user_data
|
||||
# we look up perms, groups, and host_id on demand, see __getattr__
|
||||
self._perms = None
|
||||
self._groups = None
|
||||
self._host_id = ''
|
||||
self.logged_in = True
|
||||
|
||||
def __getattr__(self, name):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue