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
def __init__(self, config, db): self._config = config self._db = db self._cachedb = database.usercache(db) self._notify_cache = {}
def _update_ds(self): if self._db: self.userdb = database.usercache(self._db) else: self.userdb = None