Rename misleading relation from users to acl.
[invirt/packages/invirt-web.git] / cache_acls.py
index 3b68129..353574a 100644 (file)
@@ -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)