def __init__(self, db):
        AbstractController.__init__(self, db)

        self._listdic = []
        self._author_classify_dict = {}
        'should place the key-values from posts to put in author'
        self._author_prop_dict = {}
 def __init__(self, db):
     AbstractController.__init__(self, db)
     self._configInst = getConfig()
     self.host = self._configInst.get(self.__class__.__name__, "host")
     self.user = self._configInst.get(self.__class__.__name__, "user")
     self.pwd = self._configInst.get(self.__class__.__name__, "pwd")
     self.schema = self._configInst.get(self.__class__.__name__, "schema")
     self._mysql_conn = None
Ejemplo n.º 3
0
 def __init__(self, db):
     AbstractController.__init__(self, db)
     self.normalize = self._config_parser.get(self.__class__.__name__,
                                              "normalize")
     self._all_authors_features = self._config_parser.eval(
         self.__class__.__name__, 'all_authors')
     self._default_cols = [
         'author_guid', 'attribute_name', 'attribute_value'
     ]
     self._author_features_data_frame = {}
 def execute(self, window_start):
     AbstractController.execute(self, window_start)
 def tearDown(self):
     AbstractController.tearDown(self)
     if self._mysql_conn:
         self.mysql_close()
 def setUp(self):
     AbstractController.setUp(self)
 def __init__(self, db):
     AbstractController.__init__(self, db)
     self._actions = self._config_parser.eval(self.__class__.__name__,
                                              "actions")