예제 #1
0
 def _update_ds(self):
     if self._db:
         self.userdb = database.usercache(self._db)
         self.msgdb = database.messages(self._db)
         self.attdb = database.attachments(self._db)
         self.valdb = database.validations(self._db)
     else:
         self.userdb = None
         self.msgdb = None
         self.attdb = None
         self.valdb = None
예제 #2
0
 def _update_ds(self):
     if self._db:
         self.userdb = database.usercache(self._db)
         self.msgdb = database.messages(self._db)
         self.attdb = database.attachments(self._db)
         self.valdb = database.validations(self._db)
     else:
         self.userdb = None
         self.msgdb = None
         self.attdb = None
         self.valdb = None
예제 #3
0
 def __init__(self, config, db):
     self._config = config
     self._db = db
     self._cachedb = database.usercache(db)
     self._notify_cache = {}
예제 #4
0
 def _update_ds(self):
     if self._db:
         self.userdb = database.usercache(self._db)
     else:
         self.userdb = None
예제 #5
0
 def __init__(self, config, db):
     self._config = config
     self._db = db
     self._cachedb = database.usercache(db)
     self._notify_cache = {}