Ignore:
Timestamp:
Oct 22, 2008, 10:01:04 PM (15 years ago)
Author:
broder
Message:

Make the admin mode work - fix a SQLAlchemy 0.4-ism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/webcommon.py

    r1001 r1169  
    4646    def getMachines(self):
    4747        if self.isadmin:
    48             return Machine.query().join('acl').filter_by(
    49                 database.or_(MachineAccess.c.user == self.username,
    50                              Machine.c.adminable == True))
     48            return Machine.query().join('acl').filter(
     49                database.or_(MachineAccess.user==self.username,
     50                             Machine.adminable==True))
    5151        else:
    5252            return Machine.query().join('acl').filter_by(user=self.username)
Note: See TracChangeset for help on using the changeset viewer.