Ejemplo n.º 1
0
 def set_machine(self, machine):
     BaseMachineDbObject.set_machine(self, machine)
     self.parents.set_machine(machine)
     self.scripts.set_machine(machine)
     self.family.set_machine(machine)
     self.environment.set_machine(machine)
     self.config = MachineVariablesConfig(self.conn, machine)
Ejemplo n.º 2
0
 def set_machine(self, machine):
     BaseMachineDbObject.set_machine(self, machine)
     self.parents.set_machine(machine)
     self.scripts.set_machine(machine)
     self.family.set_machine(machine)
     self.environment.set_machine(machine)
     self.config = MachineVariablesConfig(self.conn, machine)
Ejemplo n.º 3
0
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machines')
     self.parents = MachineParents(self.conn)
     self.scripts = MachineScripts(self.conn)
     self.family = MachineFamily(self.conn)
     self.environment = MachineEnvironment(self.conn)
     self.config = None
     # These aren't really actual relations in the
     # same sense that the above objects are
     # but they are objects the the machines
     # table relates to, and should fit nicely in this
     # class.
     self.diskconfig = DiskConfigHandler(self.conn)
     self.kernels = Table_cursor(self.conn, 'kernels')
     # This is the main family class
     self.mainfamily = Family(self.conn)
Ejemplo n.º 4
0
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machines')
     self.parents = MachineParents(self.conn)
     self.scripts = MachineScripts(self.conn)
     self.family = MachineFamily(self.conn)
     self.environment = MachineEnvironment(self.conn)
     self.config = None
     # These aren't really actual relations in the
     # same sense that the above objects are
     # but they are objects the the machines
     # table relates to, and should fit nicely in this
     # class.
     self.diskconfig = DiskConfigHandler(self.conn)
     self.kernels = Table_cursor(self.conn, 'kernels')
     # This is the main family class
     self.mainfamily = Family(self.conn)
Ejemplo n.º 5
0
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machine_parent')
Ejemplo n.º 6
0
 def set_machine(self, machine):
     BaseMachineDbObject.set_machine(self, machine)
     self._parents.set_machine(machine)
Ejemplo n.º 7
0
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machine_variables')
     Environment.__init__(self, conn, 'machine_variables', 'trait')
     self._parents = MachineParents(self.conn)
Ejemplo n.º 8
0
 def set_machine(self, machine):
     BaseMachineDbObject.set_machine(self, machine)
Ejemplo n.º 9
0
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machine_family')
Ejemplo n.º 10
0
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machine_parent')
Ejemplo n.º 11
0
 def set_machine(self, machine):
     BaseMachineDbObject.set_machine(self, machine)
     self._parents.set_machine(machine)
Ejemplo n.º 12
0
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machine_variables')
     Environment.__init__(self, conn, 'machine_variables', 'trait')
     self._parents = MachineParents(self.conn)
Ejemplo n.º 13
0
 def set_machine(self, machine):
     BaseMachineDbObject.set_machine(self, machine)
Ejemplo n.º 14
0
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machine_family')