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

Add admins table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.