Changeset 1169
- Timestamp:
- Oct 22, 2008, 10:01:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/webcommon.py
r1001 r1169 46 46 def getMachines(self): 47 47 if self.isadmin: 48 return Machine.query().join('acl').filter _by(49 database.or_(MachineAccess. c.user ==self.username,50 Machine. c.adminable ==True))48 return Machine.query().join('acl').filter( 49 database.or_(MachineAccess.user==self.username, 50 Machine.adminable==True)) 51 51 else: 52 52 return Machine.query().join('acl').filter_by(user=self.username)
Note: See TracChangeset
for help on using the changeset viewer.