def _initTables(self):
     self._feedbacksTable = Table("feedbacks", (
         ("id", "integer primary key autoincrement"),
         ("content", "text"),
         ("value", "integer"),
         ("test", "integer"),
     ))
     self._createTable(self._feedbacksTable)
     self._unigramsTable = Table(
         "unigrams", (("id", "integer primary key autoincrement"),
                      ("content", "text"), ("negFrequency", "integer"),
                      ("posFrequency", "integer")))
     self._createTable(self._unigramsTable)
示例#2
0
 def __init__(self, controller):
     """ Class constructor """
     Table.__init__(self, controller, 'om_visit_x_gully', 'id')
 def __init__(self, controller):
     """ Class constructor """
     Table.__init__(self, controller, 'om_visit_parameter', 'id')