Column('owner', String, nullable=False),
Column('contact', String, nullable=False),
Column('uuid', String, nullable=False),
- Column('boot_off_cd', Boolean, nullable=False, default=False),
+ Column('administrator', String, nullable=False, default=False),
Column('type_id', String, ForeignKey('types.type_id'), nullable=False),
Column('autorestart', Boolean, nullable=False, default=False),
Column('cpus', Integer, nullable=False, default=1))
self.cdrom_id = cdrom_id
self.description = description
-assign_mapper(ctx, Machine, machine_table, \
- properties={'nics': relation(NIC),
- 'disks': relation(Disk),
+assign_mapper(ctx, Machine, machine_table,
+ properties={'nics': relation(NIC, backref="machine"),
+ 'disks': relation(Disk, backref="machine"),
'type': relation(Type)});
assign_mapper(ctx, NIC, nic_table)
assign_mapper(ctx, Disk, disk_table)