From 3529e29969960fa31fcb79f6313a93ae30f443bb Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Wed, 22 Oct 2008 22:01:04 -0400 Subject: [PATCH] Make the admin mode work - fix a SQLAlchemy 0.4-ism svn path=/trunk/packages/sipb-xen-www/; revision=1169 --- code/webcommon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/webcommon.py b/code/webcommon.py index 9052a4e..0e3fd1d 100644 --- a/code/webcommon.py +++ b/code/webcommon.py @@ -45,9 +45,9 @@ class State(object): def getMachines(self): if self.isadmin: - return Machine.query().join('acl').filter_by( - database.or_(MachineAccess.c.user == self.username, - Machine.c.adminable == True)) + return Machine.query().join('acl').filter( + database.or_(MachineAccess.user==self.username, + Machine.adminable==True)) else: return Machine.query().join('acl').filter_by(user=self.username) -- 1.7.9.5