Changeset 2226 for trunk/packages


Ignore:
Timestamp:
Feb 27, 2009, 9:01:05 PM (16 years ago)
Author:
price
Message:

Don't use a SA 0.5ism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/cache_acls.py

    r2223 r2226  
    7575        old_admin_acl = set(a.user for a in Admin.query())
    7676        for removed in old_admin_acl - admin_acl:
    77             Admin.query.filter_by(user=removed).delete()
     77            old = Admin.query.filter_by(user=removed).first()
     78            session.delete(old)
    7879        for added in admin_acl - old_admin_acl:
    7980            a = Admin(user=added)
Note: See TracChangeset for help on using the changeset viewer.