X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/eabe84bd3f3ea514893ec700d598a06c2418f37e..47b9cb0d87524e6598da025f3c49cd013f00606b:/code/cache_acls.py diff --git a/code/cache_acls.py b/code/cache_acls.py index 46e5c73..43af7dd 100755 --- a/code/cache_acls.py +++ b/code/cache_acls.py @@ -19,7 +19,7 @@ def refreshMachine(m): for p in people - old_people: ma = MachineAccess(user=p) m.acl.append(ma) - session.save_or_update(ma) + session.add(ma) def refreshCache(): session.begin() @@ -38,7 +38,7 @@ def refreshCache(): session.delete(old) for added in admin_acl - old_admin_acl: a = Admin(user=added) - session.save_or_update(a) + session.add(a) session.flush() # Atomically execute our changes