Changeset 256


Ignore:
Timestamp:
Jan 24, 2008, 5:09:38 PM (16 years ago)
Author:
ecprice
Message:

Rename misleading relation from users to acl.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/sipb-xen-database/sipb_xen_database/models.py

    r243 r256  
    9191                          'disks': relation(Disk, backref="machine"),
    9292                          'type': relation(Type),
    93                           'users': relation(MachineAccess, backref="machine")});
     93                          'acl': relation(MachineAccess, backref="machine")});
    9494assign_mapper(ctx, MachineAccess, machine_access_table)
    9595assign_mapper(ctx, NIC, nic_table)
  • trunk/web/cache_acls.py

    r249 r256  
    4141        print '%s: %s' % (m.name, ' '.join(people))
    4242        transaction = ctx.current.create_transaction()
    43         for u in m.users:
    44             ctx.current.delete(u)
     43        for a in m.acl:
     44            ctx.current.delete(a)
    4545        for p in people:
    4646            ma = MachineAccess(machine_id=m.machine_id, user=p)
  • trunk/web/controls.py

    r247 r256  
    202202        for disk in machine.disks:
    203203            ctx.current.delete(disk)
    204         for access in machine.users:
     204        for access in machine.acl:
    205205            ctx.current.delete(access)
    206206        ctx.current.delete(machine)
Note: See TracChangeset for help on using the changeset viewer.