Changeset 572 for trunk/packages/sipb-xen-www/code/webcommon.py
- Timestamp:
- Jun 2, 2008, 11:25:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/webcommon.py
r554 r572 37 37 return property(getter) 38 38 39 class Global(object):40 """ Global state of the system, to avoid duplicate remctls to get state"""39 class State(object): 40 """State for a request""" 41 41 def __init__(self, user): 42 self.user = user42 self.username = user 43 43 44 44 machines = cachedproperty(lambda self: 45 Machine.query().join('acl').select_by(user=self.user ))45 Machine.query().join('acl').select_by(user=self.username)) 46 46 xmlist_raw = cachedproperty(lambda self: controls.getList()) 47 47 xmlist = cachedproperty(lambda self: … … 56 56 delattr(self, attr) 57 57 58 g = Global(None)58 state = State(None)
Note: See TracChangeset
for help on using the changeset viewer.