Changeset 1709 for trunk/packages/invirt-web
- Timestamp:
- Nov 17, 2008, 2:08:04 PM (16 years ago)
- Location:
- trunk/packages/invirt-web/code
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/cache_acls.py
r1318 r1709 43 43 people = set() 44 44 people.update(expandLocker(m.owner)) 45 people.update(expandName(m.administrator)) 45 if m.administrator is not None: 46 people.update(expandName(m.administrator)) 46 47 return people 47 48 -
trunk/packages/invirt-web/code/controls.py
r1695 r1709 91 91 machine.memory = memory 92 92 machine.owner = owner 93 machine.administrator = owner93 machine.administrator = None 94 94 machine.contact = contact 95 95 machine.uuid = uuidToString(randomUUID()) -
trunk/packages/invirt-web/code/validation.py
r1612 r1709 45 45 if owner is not None: 46 46 self.owner = owner 47 admin = testAdmin(username, admin, machine) 48 if admin is not None: 49 self.admin = admin 47 self.admin = testAdmin(username, admin, machine) 50 48 contact = testContact(username, contact, machine) 51 49 if contact is not None: … … 219 217 return None 220 218 if machine is not None and admin == machine.administrator: 221 return None219 return admin 222 220 if admin == user: 223 221 return admin
Note: See TracChangeset
for help on using the changeset viewer.