コード例 #1
0
 def make_superdict(self, machine=None):
     msg = 'make_superdict is not really ready yet'
     warnings.warn(msg, NotReadyYetWarning, stacklevel=3)
     if machine is None:
         self._check_machine_set()
         machine = self.current_machine
     clause = self._machine_clause_(machine=machine)
     # due to limitations in the Environment class
     # we need to temporarily set the machine
     # to the value of the machine argument, then
     # set it back before returning the superdict
     current_machine = self.current_machine
     self.set_machine(machine)
     superdict = Environment._make_superdict_(self, clause)
     self.set_machine(current_machine)
     return  superdict
コード例 #2
0
ファイル: relations.py プロジェクト: pombredanne/paella-svn
 def make_superdict(self, machine=None):
     msg = 'make_superdict is not really ready yet'
     warnings.warn(msg, NotReadyYetWarning, stacklevel=3)
     if machine is None:
         self._check_machine_set()
         machine = self.current_machine
     clause = self._machine_clause_(machine=machine)
     # due to limitations in the Environment class
     # we need to temporarily set the machine
     # to the value of the machine argument, then
     # set it back before returning the superdict
     current_machine = self.current_machine
     self.set_machine(machine)
     superdict = Environment._make_superdict_(self, clause)
     self.set_machine(current_machine)
     return superdict
コード例 #3
0
ファイル: relations.py プロジェクト: umeboshi2/paella
 def make_superdict(self, machine=None):
     # change sep here
     sep = PAELLA_TRAIT_NAME_SEP
     if machine is None:
         self._check_machine_set()
         machine = self.current_machine
     clause = self._machine_clause_(machine=machine)
     # due to limitations in the Environment class
     # we need to temporarily set the machine
     # to the value of the machine argument, then
     # set it back before returning the superdict
     current_machine = self.current_machine
     self.set_machine(machine)
     superdict = Environment.make_superdict(self, clause, sep=sep)
     self.set_machine(current_machine)
     return  superdict
コード例 #4
0
ファイル: relations.py プロジェクト: pombredanne/paella-svn
 def make_superdict(self, machine=None):
     # change sep here
     sep = PAELLA_TRAIT_NAME_SEP
     if machine is None:
         self._check_machine_set()
         machine = self.current_machine
     clause = self._machine_clause_(machine=machine)
     # due to limitations in the Environment class
     # we need to temporarily set the machine
     # to the value of the machine argument, then
     # set it back before returning the superdict
     current_machine = self.current_machine
     self.set_machine(machine)
     superdict = Environment.make_superdict(self, clause, sep=sep)
     self.set_machine(current_machine)
     return superdict
コード例 #5
0
ファイル: mtype.py プロジェクト: BackupTheBerlios/paella-svn
 def _make_superdict_(self):
     clause = self._mtype_clause()
     return Environment._make_superdict_(self, clause)
コード例 #6
0
ファイル: mtype.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, conn, machine_type):
     BaseMachineTypeObject.__init__(self)
     Environment.__init__(self, conn, 'machine_type_variables', 'trait')
     self.current = machine_type
コード例 #7
0
 def _make_superdict_(self):
     clause = self._mtype_clause()
     return Environment._make_superdict_(self, clause)
コード例 #8
0
ファイル: base.py プロジェクト: joelsefus/paella
 def __init__(self, conn, suite, trait):
     self.suite = suite
     table = ujoin(suite, 'variables')
     Environment.__init__(self, conn, table, 'trait')
     self.set_main(trait)
コード例 #9
0
ファイル: main.py プロジェクト: pombredanne/paella-svn
 def _make_superdict_(self):
     clause = Eq('profile', self.profile)
     return Environment._make_superdict_(self, clause)
コード例 #10
0
ファイル: main.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, conn, profile):
     self.suite = get_suite(conn, profile)
     self.profile = profile
     Environment.__init__(self, conn, 'profile_variables', 'trait')
     self.traitparent = TraitParent(self.conn, self.suite)
コード例 #11
0
 def __init__(self, conn, suite):
     self.suite = suite
     table = ujoin(suite, "variables")
     Environment.__init__(self, conn, table, "trait")
コード例 #12
0
ファイル: relations.py プロジェクト: umeboshi2/paella
 def _make_superdict_(self):
     clause = self._machine_clause_()
     return Environment._make_superdict_(self, clause)
コード例 #13
0
ファイル: relations.py プロジェクト: umeboshi2/paella
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machine_variables')
     Environment.__init__(self, conn, 'machine_variables', 'trait')
     self._parents = MachineParents(self.conn)
コード例 #14
0
 def _make_superdict_(self):
     msg = "_make_superdict_ is not really ready yet"
     warnings.warn(msg, NotReadyYetWarning, stacklevel=3)
     clause = self._machine_clause_()
     return Environment._make_superdict_(self, clause)
コード例 #15
0
 def __init__(self, conn, suite, trait):
     self.suite = suite
     table = ujoin(suite, 'variables')
     Environment.__init__(self, conn, table, 'trait')
     self.set_main(trait)
コード例 #16
0
ファイル: main.py プロジェクト: BackupTheBerlios/paella-svn
 def _make_superdict_(self):
     clause = Eq('profile', self.profile)
     return Environment._make_superdict_(self, clause)
コード例 #17
0
ファイル: main.py プロジェクト: pombredanne/paella-svn
 def make_superdict(self, sep='_'):
     clause = Eq('profile', self.profile)
     return Environment.make_superdict(self, clause, sep=sep)
コード例 #18
0
ファイル: base.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, conn, hostname):
     Environment.__init__(self, conn, 'current_environment', 'hostname')
     self.set_main(hostname)
コード例 #19
0
ファイル: relations.py プロジェクト: pombredanne/paella-svn
 def __init__(self, conn):
     BaseMachineDbObject.__init__(self, conn, table='machine_variables')
     Environment.__init__(self, conn, 'machine_variables', 'trait')
     self._parents = MachineParents(self.conn)
コード例 #20
0
ファイル: main.py プロジェクト: pombredanne/paella-svn
 def __init__(self, conn, profile):
     self.suite = get_suite(conn, profile)
     self.profile = profile
     Environment.__init__(self, conn, 'profile_variables', 'trait')
     self.traitparent = TraitParent(self.conn, self.suite)
コード例 #21
0
ファイル: relations.py プロジェクト: pombredanne/paella-svn
 def _make_superdict_(self):
     clause = self._machine_clause_()
     return Environment._make_superdict_(self, clause)
コード例 #22
0
 def __init__(self, conn, machine_type):
     BaseMachineTypeObject.__init__(self)
     Environment.__init__(self, conn, 'machine_type_variables', 'trait')
     self.current = machine_type
コード例 #23
0
ファイル: base.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, conn, hostname):
     Environment.__init__(self, conn, "current_environment", "hostname")
     self.set_main(hostname)
コード例 #24
0
ファイル: base.py プロジェクト: pombredanne/paella-svn
 def __init__(self, conn, hostname):
     Environment.__init__(self, conn, 'current_environment', 'hostname')
     self.set_main(hostname)
コード例 #25
0
ファイル: relations.py プロジェクト: pombredanne/paella-svn
 def _make_superdict_(self):
     msg = "_make_superdict_ is not really ready yet"
     warnings.warn(msg, NotReadyYetWarning, stacklevel=3)
     clause = self._machine_clause_()
     return Environment._make_superdict_(self, clause)