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.

File:
1 edited

Legend:

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

    r555 r589  
    104104                          'disks': relation(Disk, backref="machine", lazy=False),
    105105                          'type': relation(Type, lazy=False),
    106                           'acl': relation(MachineAccess, backref="machine", lazy=False)});
     106                          'acl': relation(MachineAccess, backref="machine", lazy=False, private=True)});
    107107assign_mapper(ctx, MachineAccess, machine_access_table)
    108108assign_mapper(ctx, NIC, nic_table)
Note: See TracChangeset for help on using the changeset viewer.