예제 #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' 
예제 #2
0
파일: package.py 프로젝트: joelsefus/paella
 def set_trait(self, trait):
     TraitRelation.set_trait(self, trait)
     self.traitparent.set_trait(trait)
예제 #3
0
파일: package.py 프로젝트: joelsefus/paella
 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)
예제 #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' 
예제 #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()])
예제 #6
0
 def set_trait(self, trait):
     TraitRelation.set_trait(self, trait)
     self.traitparent.set_trait(trait)
예제 #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)
예제 #8
0
 def get_row(self, template):
     return TraitRelation.get_row(self, 'template', template)
예제 #9
0
파일: parent.py 프로젝트: joelsefus/paella
 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()])
예제 #10
0
 def get_row(self, template):
     return TraitRelation.get_row(self, 'template', template)