If the ACL for a locker isn't accessible, assume it's empty (closes #82)
[invirt/packages/invirt-web.git] / code / cache_acls.py
index 414f2e3..fa9b9f9 100644 (file)
@@ -55,7 +55,7 @@ def refreshCache():
     session.begin()
 
     try:
     session.begin()
 
     try:
-        machines = Machine.select()
+        machines = Machine.query().all()
         for m in machines:
             refreshMachine(m)
         session.flush()
         for m in machines:
             refreshMachine(m)
         session.flush()