Changeset 1624
- Timestamp:
- Nov 12, 2008, 6:00:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/webcommon.py
r1612 r1624 26 26 def getMachines(self): 27 27 if self.isadmin: 28 return Machine.query().join('acl').filter( 29 database.or_(MachineAccess.user==self.username, 30 Machine.adminable==True)) 28 return Machine.query().join('acl').all() 31 29 else: 32 30 return Machine.query().join('acl').filter_by(user=self.username)
Note: See TracChangeset
for help on using the changeset viewer.