svn path=/trunk/web/; revision=256
people.update(expandName(m.administrator))
print '%s: %s' % (m.name, ' '.join(people))
transaction = ctx.current.create_transaction()
- for u in m.users:
- ctx.current.delete(u)
+ for a in m.acl:
+ ctx.current.delete(a)
for p in people:
ma = MachineAccess(machine_id=m.machine_id, user=p)
ctx.current.save(ma)
ctx.current.save(nic)
for disk in machine.disks:
ctx.current.delete(disk)
- for access in machine.users:
+ for access in machine.acl:
ctx.current.delete(access)
ctx.current.delete(machine)
transaction.commit()