Changeset 2222 for trunk


Ignore:
Timestamp:
Feb 27, 2009, 8:46:22 PM (16 years ago)
Author:
broder
Message:

Add admins table.

Location:
trunk/packages/invirt-database
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/debian/changelog

    r2218 r2222  
     1invirt-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
    17invirt-database (0.2.0) unstable; urgency=low
    28
  • trunk/packages/invirt-database/python/database/models.py

    r2213 r2222  
    102102       PrimaryKeyConstraint('machine_id', 'user'))
    103103
     104admins_table = Table('admins', meta,
     105       Column('user', String, nullable=False, index=True, primary_key=True))
     106
    104107class Machine(record.Record):
    105108    _identity_field = 'name'
     
    126129    _identity_field = 'autoinstall_id'
    127130
     131class Admin(record.Record):
     132    _identity_field = 'user'
     133
    128134from invirt.database.owner import Owner
    129135
     
    142148session.mapper(Autoinstall, autoinstalls_table)
    143149session.mapper(Owner, owners_table)
     150session.mapper(Admin, admins_table)
    144151
    145152def clear_cache():
Note: See TracChangeset for help on using the changeset viewer.