Changeset 2200 for trunk/packages


Ignore:
Timestamp:
Feb 27, 2009, 2:56:51 AM (16 years ago)
Author:
price
Message:

fix more imports EIBTI-style

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

Legend:

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

    r2198 r2200  
    1414  * refactor code that sets values
    1515  * print full help on no arguments
     16
     17  all:
    1618  * make EIBTI imports
    1719
    18  -- Greg Price <price@mit.edu>  Fri, 27 Feb 2009 02:16:28 -0500
     20 -- Greg Price <price@mit.edu>  Fri, 27 Feb 2009 02:29:29 -0500
    1921
    2022invirt-database (0.1.7) unstable; urgency=low
  • trunk/packages/invirt-database/python/database/models.py

    r2187 r2200  
    66from sqlalchemy.ext.assignmapper import assign_mapper
    77
    8 from record import *
    9 from owner import Owner
     8from invirt.database import record
     9from invirt.database.owner import Owner
    1010
    1111__all__ = ['meta',
     
    102102       PrimaryKeyConstraint('machine_id', 'user'))
    103103
    104 class Machine(Record):
     104class Machine(record.Record):
    105105    _identity_field = 'name'
    106106
    107 class MachineAccess(Record):
     107class MachineAccess(record.Record):
    108108    pass
    109109
    110 class NIC(Record):
     110class NIC(record.Record):
    111111    pass
    112112
    113 class Disk(Record):
     113class Disk(record.Record):
    114114    pass
    115115
    116 class Type(Record):
     116class Type(record.Record):
    117117    _identity_field = 'type_id'
    118118
    119 class Mirror(Record):
     119class Mirror(record.Record):
    120120    _identity_field = 'mirror_id'
    121121
    122 class CDROM(Record):
     122class CDROM(record.Record):
    123123    _identity_field = 'cdrom_id'
    124124
    125 class Autoinstall(Record):
     125class Autoinstall(record.Record):
    126126    _identity_field = 'autoinstall_id'
    127127
  • trunk/packages/invirt-database/python/database/owner.py

    r2192 r2200  
    1 from record import Record
     1from invirt.database import record
    22
    3 class Owner(Record):
     3class Owner(record.Record):
    44    _f = {
    55        'ram_quota_total': (512, 'MiB'),
Note: See TracChangeset for help on using the changeset viewer.