Changeset 168 for trunk/packages


Ignore:
Timestamp:
Oct 10, 2007, 12:05:03 AM (17 years ago)
Author:
ecprice
Message:

Allow administrators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/sipb-xen-database/sipb_xen_database/models.py

    r137 r168  
    2727       Column('contact', String, nullable=False),
    2828       Column('uuid', String, nullable=False),
    29        Column('boot_off_cd', Boolean, nullable=False, default=False),
     29       Column('administrator', String, nullable=False, default=False),
    3030       Column('type_id', String, ForeignKey('types.type_id'), nullable=False),
    3131       Column('autorestart', Boolean, nullable=False, default=False),
     
    8181        self.description = description
    8282
    83 assign_mapper(ctx, Machine, machine_table, \
    84               properties={'nics': relation(NIC),
    85                           'disks': relation(Disk),
     83assign_mapper(ctx, Machine, machine_table,
     84              properties={'nics': relation(NIC, backref="machine"),
     85                          'disks': relation(Disk, backref="machine"),
    8686                          'type': relation(Type)});
    8787assign_mapper(ctx, NIC, nic_table)
Note: See TracChangeset for help on using the changeset viewer.