Changeset 2222 for trunk/packages/invirt-database/python
- Timestamp:
- Feb 27, 2009, 8:46:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-database/python/database/models.py
r2213 r2222 102 102 PrimaryKeyConstraint('machine_id', 'user')) 103 103 104 admins_table = Table('admins', meta, 105 Column('user', String, nullable=False, index=True, primary_key=True)) 106 104 107 class Machine(record.Record): 105 108 _identity_field = 'name' … … 126 129 _identity_field = 'autoinstall_id' 127 130 131 class Admin(record.Record): 132 _identity_field = 'user' 133 128 134 from invirt.database.owner import Owner 129 135 … … 142 148 session.mapper(Autoinstall, autoinstalls_table) 143 149 session.mapper(Owner, owners_table) 150 session.mapper(Admin, admins_table) 144 151 145 152 def clear_cache():
Note: See TracChangeset
for help on using the changeset viewer.