Changeset 2222 for trunk/packages
- Timestamp:
- Feb 27, 2009, 8:46:22 PM (16 years ago)
- Location:
- trunk/packages/invirt-database
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-database/debian/changelog
r2218 r2222 1 invirt-database (0.2.1) unstable; urgency=low 2 3 * Add an admins table. 4 5 -- Evan Broder <broder@mit.edu> Fri, 27 Feb 2009 20:24:27 -0500 6 1 7 invirt-database (0.2.0) unstable; urgency=low 2 8 -
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.