From: Eric Price Date: Fri, 6 Jun 2008 16:01:28 +0000 (-0400) Subject: Set machine_access to be a private attribute of machine, so the acl is X-Git-Tag: sipb-xen-database/10.10~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/commitdiff_plain/1153e195dfa9053fb722c58e27ca3dcc57c1664e?ds=sidebyside;hp=99531f4aebd766e3e29ecebc745b52c7b308e12e Set machine_access to be a private attribute of machine, so the acl is deleted automatically when the machine is destroyed. svn path=/trunk/packages/sipb-xen-database/; revision=589 --- diff --git a/sipb_xen_database/models.py b/sipb_xen_database/models.py index 1090531..d3f1f6d 100644 --- a/sipb_xen_database/models.py +++ b/sipb_xen_database/models.py @@ -103,7 +103,7 @@ assign_mapper(ctx, Machine, machine_table, properties={'nics': relation(NIC, backref="machine", lazy=False), 'disks': relation(Disk, backref="machine", lazy=False), 'type': relation(Type, lazy=False), - 'acl': relation(MachineAccess, backref="machine", lazy=False)}); + 'acl': relation(MachineAccess, backref="machine", lazy=False, private=True)}); assign_mapper(ctx, MachineAccess, machine_access_table) assign_mapper(ctx, NIC, nic_table) assign_mapper(ctx, Disk, disk_table)