X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/eabe84bd3f3ea514893ec700d598a06c2418f37e..2be0969e153ace507ec07b27d156b50e54e00f94:/code/cache_acls.py?ds=inline 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