Changeset 446 for trunk/packages/sipb-xen-www/code
- Timestamp:
- Apr 22, 2008, 12:03:45 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r443 r446 40 40 from sipb_xen_database import Machine, CDROM, ctx, connect, MachineAccess, Type, Autoinstall 41 41 import validation 42 import cache_acls 42 43 from webcommon import InvalidInput, CodeError, g 43 44 import controls … … 395 396 ctx.current.save(disk) 396 397 397 if owner is not None: 398 update_acl = False 399 if owner is not None and owner != machine.owner: 398 400 machine.owner = owner 401 update_acl = True 399 402 if name is not None: 400 403 machine.name = name 401 if admin is not None :404 if admin is not None and admin != machine.administrator: 402 405 machine.administrator = admin 406 update_acl = True 403 407 if contact is not None: 404 408 machine.contact = contact 405 409 406 410 ctx.current.save(machine) 411 if update_acl: 412 cache_acls.refreshMachine(machine) 407 413 transaction.commit() 408 414 except:
Note: See TracChangeset
for help on using the changeset viewer.