From: Eric Price Date: Thu, 24 Jan 2008 22:09:38 +0000 (-0500) Subject: Rename misleading relation from users to acl. X-Git-Tag: sipb-xen-www/1~23 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/2fb52b912876c89ec4f93ab296bf514e966b0ce1 Rename misleading relation from users to acl. svn path=/trunk/web/; revision=256 --- diff --git a/cache_acls.py b/cache_acls.py index 3b68129..353574a 100644 --- a/cache_acls.py +++ b/cache_acls.py @@ -40,8 +40,8 @@ if __name__ == '__main__': 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) diff --git a/controls.py b/controls.py index 620402b..2e9b541 100644 --- a/controls.py +++ b/controls.py @@ -201,7 +201,7 @@ def deleteVM(machine): 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()