- Timestamp:
- Jan 24, 2008, 5:09:38 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/sipb-xen-database/sipb_xen_database/models.py
r243 r256 91 91 'disks': relation(Disk, backref="machine"), 92 92 'type': relation(Type), 93 ' users': relation(MachineAccess, backref="machine")});93 'acl': relation(MachineAccess, backref="machine")}); 94 94 assign_mapper(ctx, MachineAccess, machine_access_table) 95 95 assign_mapper(ctx, NIC, nic_table) -
trunk/web/cache_acls.py
r249 r256 41 41 print '%s: %s' % (m.name, ' '.join(people)) 42 42 transaction = ctx.current.create_transaction() 43 for u in m.users:44 ctx.current.delete( u)43 for a in m.acl: 44 ctx.current.delete(a) 45 45 for p in people: 46 46 ma = MachineAccess(machine_id=m.machine_id, user=p) -
trunk/web/controls.py
r247 r256 202 202 for disk in machine.disks: 203 203 ctx.current.delete(disk) 204 for access in machine. users:204 for access in machine.acl: 205 205 ctx.current.delete(access) 206 206 ctx.current.delete(machine)
Note: See TracChangeset
for help on using the changeset viewer.