Fix a SQLAlchemy bug in the web ACL caching code
authorEvan Broder <broder@mit.edu>
Thu, 9 Oct 2008 06:20:44 +0000 (02:20 -0400)
committerEvan Broder <broder@mit.edu>
Thu, 9 Oct 2008 06:20:44 +0000 (02:20 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=1095

code/cache_acls.py

index 414f2e3..fa9b9f9 100644 (file)
@@ -55,7 +55,7 @@ def refreshCache():
     session.begin()
 
     try:
-        machines = Machine.select()
+        machines = Machine.query().all()
         for m in machines:
             refreshMachine(m)
         session.flush()