Ignore:
Timestamp:
Jun 6, 2008, 12:01:28 PM (17 years ago)
Author:
ecprice
Message:

Set machine_access to be a private attribute of machine, so the acl is
deleted automatically when the machine is destroyed.

Location:
trunk/packages/sipb-xen-www/code
Files:
2 edited

Legend:

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

    r434 r589  
    4747        ctx.current.delete(ma)
    4848    for p in people - old_people:
    49         ma = MachineAccess(machine_id=m.machine_id, user=p)
     49        ma = MachineAccess(user=p)
     50        m.acl.append(ma)
    5051        ctx.current.save(ma)
    5152   
  • trunk/packages/sipb-xen-www/code/controls.py

    r577 r589  
    197197        for disk in machine.disks:
    198198            ctx.current.delete(disk)
    199         for access in machine.acl:
    200             ctx.current.delete(access)
    201199        ctx.current.delete(machine)
    202200        transaction.commit()
Note: See TracChangeset for help on using the changeset viewer.