Example #1
0
 def __init__(self, conn, suite):
     table = ujoin(suite, 'templates')
     TraitRelation.__init__(self, conn, suite, table, name='TraitTemplate')
     self.traitparent = TraitParent(conn, suite)
     self.template = Template()
     self.template_path = None
     self.textfiles = TextFileManager(self.conn)
     self._jtable = '%s as s join textfiles as t ' % table
     self._jtable += 'on s.templatefile = t.fileid' 
Example #2
0
 def set_trait(self, trait):
     TraitRelation.set_trait(self, trait)
     self.traitparent.set_trait(trait)
Example #3
0
 def __init__(self, conn, suite):
     table = ujoin(suite, 'trait', 'package')
     TraitRelation.__init__(self, conn, suite, table, name='TraitPackage')
     self.cmd.set_fields(['package', 'action'])
     self.traitparent = TraitParent(conn, suite)
Example #4
0
 def __init__(self, conn, suite):
     table = ujoin(suite, 'scripts')
     TraitRelation.__init__(self, conn, suite, table, name='TraitScript')
     self.textfiles = TextFileManager(self.conn)
     self._jtable = '%s as s join textfiles as t ' % table
     self._jtable += 'on s.scriptfile = t.fileid' 
Example #5
0
 def __init__(self, conn, suite):
     table = ujoin(suite, 'trait', 'parent')
     TraitRelation.__init__(self, conn, suite, table, name='TraitParent')
     self.graph = kjGraph([(r.trait, r.parent) for r in self.cmd.select()])
Example #6
0
 def set_trait(self, trait):
     TraitRelation.set_trait(self, trait)
     self.traitparent.set_trait(trait)
Example #7
0
 def __init__(self, conn, suite):
     table = ujoin(suite, 'trait', 'package')
     TraitRelation.__init__(self, conn, suite, table, name='TraitPackage')
     self.cmd.set_fields(['package', 'action'])
     self.traitparent = TraitParent(conn, suite)
Example #8
0
 def get_row(self, template):
     return TraitRelation.get_row(self, 'template', template)
Example #9
0
 def __init__(self, conn, suite):
     table = ujoin(suite, 'trait', 'parent')
     TraitRelation.__init__(self, conn, suite, table, name='TraitParent')
     self.graph = kjGraph([(r.trait, r.parent) for r in self.cmd.select()])
Example #10
0
 def get_row(self, template):
     return TraitRelation.get_row(self, 'template', template)