Changeset 589
- Timestamp:
- Jun 6, 2008, 12:01:28 PM (16 years ago)
- Location:
- trunk/packages
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/sipb_xen_database/models.py
r555 r589 104 104 'disks': relation(Disk, backref="machine", lazy=False), 105 105 'type': relation(Type, lazy=False), 106 'acl': relation(MachineAccess, backref="machine", lazy=False )});106 'acl': relation(MachineAccess, backref="machine", lazy=False, private=True)}); 107 107 assign_mapper(ctx, MachineAccess, machine_access_table) 108 108 assign_mapper(ctx, NIC, nic_table) -
trunk/packages/sipb-xen-www/code/cache_acls.py
r434 r589 47 47 ctx.current.delete(ma) 48 48 for p in people - old_people: 49 ma = MachineAccess(machine_id=m.machine_id, user=p) 49 ma = MachineAccess(user=p) 50 m.acl.append(ma) 50 51 ctx.current.save(ma) 51 52 -
trunk/packages/sipb-xen-www/code/controls.py
r577 r589 197 197 for disk in machine.disks: 198 198 ctx.current.delete(disk) 199 for access in machine.acl:200 ctx.current.delete(access)201 199 ctx.current.delete(machine) 202 200 transaction.commit()
Note: See TracChangeset
for help on using the changeset viewer.