Changeset 443 for trunk/packages/sipb-xen-database
- Timestamp:
- Apr 21, 2008, 10:50:54 PM (17 years ago)
- Location:
- trunk/packages/sipb-xen-database
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/debian/changelog
r433 r443 1 sipb-xen-database (10.6) unstable; urgency=low 2 3 * Support autoinstalls table. 4 5 -- Eric Price <ecprice@pseudomyrmex.mit.edu> Mon, 21 Apr 2008 22:34:46 -0400 6 1 7 sipb-xen-database (10.5) unstable; urgency=low 2 8 -
trunk/packages/sipb-xen-database/sipb_xen_database/models.py
r296 r443 13 13 'types_table', 14 14 'cdroms_table', 15 'autoinstalls_table', 15 16 'Machine', 16 17 'MachineAccess', … … 18 19 'Disk', 19 20 'Type', 20 'CDROM'] 21 'CDROM', 22 'Autoinstall', 23 ] 21 24 22 25 meta = DynamicMetaData() … … 59 62 Column('description', String, nullable=False)) 60 63 64 autoinstalls_table = Table('autoinstalls', meta, 65 Column('autoinstall_id', String, primary_key=True, nullable=False), 66 Column('description', String, nullable=False), 67 Column('type_id', String, ForeignKey('types.type_id'), nullable=False)) 68 61 69 machine_access_table = Table('machine_access', meta, 62 70 Column('machine_id', Integer, ForeignKey('machines.machine_id'), nullable=False, index=True), … … 88 96 return "<CDROM %s: %s>" % (self.cdrom_id, self.description) 89 97 98 class Autoinstall(object): 99 def __repr__(self): 100 return "<Autoinstall %s: %s (%s)>" % (self.autoinstall_id, self.description, self.type.type_id) 101 90 102 assign_mapper(ctx, Machine, machine_table, 91 103 properties={'nics': relation(NIC, backref="machine"), … … 98 110 assign_mapper(ctx, Type, types_table) 99 111 assign_mapper(ctx, CDROM, cdroms_table) 112 assign_mapper(ctx, Autoinstall, autoinstalls_table) 100 113 101 114 def clear_cache():
Note: See TracChangeset
for help on using the changeset viewer.