+
+################################################################################
+
+class Suite(object):
+ # This should be kept in sync with the suites table;
+ # we should probably just do introspection on the table
+ # (or maybe use an ORM)
+ _fieldnames = ['announce', 'changelogbase', 'codename', 'commentsdir',
+ 'copychanges', 'copydotdak', 'description', 'id',
+ 'label', 'notautomatic', 'origin', 'overridecodename',
+ 'overridesuite', 'policy_engine', 'priority', 'suite_name',
+ 'untouchable', 'validtime', 'version']
+
+ def __init_fields(self):
+ for k in self._fieldnames:
+ setattr(self, k, None)
+
+ def __init__(self, suite):
+ self.__init_fields()
+ if suite is not None:
+ db_conn = DBConn()
+ suite_data = db_conn.get_suite(suite)
+ print suite_data
+ if suite_data is not None:
+ for k in suite_data.keys():
+ setattr(self, k, suite_data[k])
+
+
+