Example #1
0
 def __init__(self, conn, suite, name='TraitsWindow'):
     self.cmd = StatementCursor(conn, name=name)
     self.cmd.set_table(ujoin(suite, 'traits'))
     rows = self.cmd.select()
     packer = lambda x : rowpacker('trait', x)
     DragListWindow.__init__(self, '%s traits' % suite, packer, rows,
                     TARGETS.get('trait', suite), name=name)
     self.set_size_request(400, 300)
Example #2
0
 def __init__(self, conn, suite, name='TraitsWindow'):
     self.cmd = StatementCursor(conn, name=name)
     self.cmd.set_table(ujoin(suite, 'traits'))
     rows = self.cmd.select()
     packer = lambda x: rowpacker('trait', x)
     DragListWindow.__init__(self,
                             '%s traits' % suite,
                             packer,
                             rows,
                             TARGETS.get('trait', suite),
                             name=name)
     self.set_size_request(400, 300)
Example #3
0
 def __init__(self, conn, suite, name='PackagesWindow'):
     self.cmd = StatementCursor(conn, name=name)
     table = ujoin(suite, 'packages')
     self.cmd.set_table(table)
     section_query ='select distinct section from %s' % table
     sections = [x.section for x in self.cmd.get(section_query)]
     self.section_combo = MyCombo(sections)
     self.section_combo.set(sections[0])
     rows = self.cmd.select(clause="section = '%s'" % sections[0])
     packer = lambda x : rowpacker('package', x)
     DragListWindow.__init__(self, '%s packages' % suite, packer, rows,
                     TARGETS.get('package', suite), name=name)
     self.vbox.pack_start(self.section_combo,0,0,0)
     self.set_size_request(400, 300)
     self.set_ok(self.set_packages)
Example #4
0
 def __init__(self, conn, suite, name='PackagesWindow'):
     self.cmd = StatementCursor(conn, name=name)
     table = ujoin(suite, 'packages')
     self.cmd.set_table(table)
     section_query = 'select distinct section from %s' % table
     sections = [x.section for x in self.cmd.get(section_query)]
     self.section_combo = MyCombo(sections)
     self.section_combo.set(sections[0])
     rows = self.cmd.select(clause="section = '%s'" % sections[0])
     packer = lambda x: rowpacker('package', x)
     DragListWindow.__init__(self,
                             '%s packages' % suite,
                             packer,
                             rows,
                             TARGETS.get('package', suite),
                             name=name)
     self.vbox.pack_start(self.section_combo, 0, 0, 0)
     self.set_size_request(400, 300)
     self.set_ok(self.set_packages)
Example #5
0
 def __init__(self, rows):
     packer = lambda x : rowpacker('family', x)
     DragListWindow.__init__(self, 'families', packer, rows,
                             TARGETS.get('family', 'flavor'))