summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a754e7b)
svn path=/trunk/packages/invirt-database/; revision=2200
invirt-quota:
* refactor code that sets values
* print full help on no arguments
invirt-quota:
* refactor code that sets values
* print full help on no arguments
- -- Greg Price <price@mit.edu> Fri, 27 Feb 2009 02:16:28 -0500
+ -- Greg Price <price@mit.edu> Fri, 27 Feb 2009 02:29:29 -0500
invirt-database (0.1.7) unstable; urgency=low
invirt-database (0.1.7) unstable; urgency=low
from sqlalchemy.ext.sessioncontext import SessionContext
from sqlalchemy.ext.assignmapper import assign_mapper
from sqlalchemy.ext.sessioncontext import SessionContext
from sqlalchemy.ext.assignmapper import assign_mapper
-from record import *
-from owner import Owner
+from invirt.database import record
+from invirt.database.owner import Owner
__all__ = ['meta',
'session',
__all__ = ['meta',
'session',
Column('user', String, nullable=False, index=True),
PrimaryKeyConstraint('machine_id', 'user'))
Column('user', String, nullable=False, index=True),
PrimaryKeyConstraint('machine_id', 'user'))
+class Machine(record.Record):
-class MachineAccess(Record):
+class MachineAccess(record.Record):
+class NIC(record.Record):
+class Disk(record.Record):
+class Type(record.Record):
_identity_field = 'type_id'
_identity_field = 'type_id'
+class Mirror(record.Record):
_identity_field = 'mirror_id'
_identity_field = 'mirror_id'
+class CDROM(record.Record):
_identity_field = 'cdrom_id'
_identity_field = 'cdrom_id'
-class Autoinstall(Record):
+class Autoinstall(record.Record):
_identity_field = 'autoinstall_id'
session.mapper(Machine, machine_table,
_identity_field = 'autoinstall_id'
session.mapper(Machine, machine_table,
-from record import Record
+from invirt.database import record
+class Owner(record.Record):
_f = {
'ram_quota_total': (512, 'MiB'),
'ram_quota_single': (512, 'MiB'),
_f = {
'ram_quota_total': (512, 'MiB'),
'ram_quota_single': (512, 'MiB'),