Changeset 2200 for trunk/packages/invirt-database/python
- Timestamp:
- Feb 27, 2009, 2:56:51 AM (16 years ago)
- Location:
- trunk/packages/invirt-database/python/database
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-database/python/database/models.py
r2187 r2200 6 6 from sqlalchemy.ext.assignmapper import assign_mapper 7 7 8 from record import *9 from owner import Owner8 from invirt.database import record 9 from invirt.database.owner import Owner 10 10 11 11 __all__ = ['meta', … … 102 102 PrimaryKeyConstraint('machine_id', 'user')) 103 103 104 class Machine( Record):104 class Machine(record.Record): 105 105 _identity_field = 'name' 106 106 107 class MachineAccess( Record):107 class MachineAccess(record.Record): 108 108 pass 109 109 110 class NIC( Record):110 class NIC(record.Record): 111 111 pass 112 112 113 class Disk( Record):113 class Disk(record.Record): 114 114 pass 115 115 116 class Type( Record):116 class Type(record.Record): 117 117 _identity_field = 'type_id' 118 118 119 class Mirror( Record):119 class Mirror(record.Record): 120 120 _identity_field = 'mirror_id' 121 121 122 class CDROM( Record):122 class CDROM(record.Record): 123 123 _identity_field = 'cdrom_id' 124 124 125 class Autoinstall( Record):125 class Autoinstall(record.Record): 126 126 _identity_field = 'autoinstall_id' 127 127 -
trunk/packages/invirt-database/python/database/owner.py
r2192 r2200 1 from record import Record1 from invirt.database import record 2 2 3 class Owner( Record):3 class Owner(record.Record): 4 4 _f = { 5 5 'ram_quota_total': (512, 'MiB'),
Note: See TracChangeset
for help on using the changeset viewer.