def __init__(self, Db=Database): self.db = Db() self.logger = logging.getLogger("UserSearchResource") load_design_doc(USER_SEARCH_DESIGN_DOC, DB_USER)
def __init__(self, Db=Database): self.db = Db() self.db.create_db(DB_EVENTS, ignore_exists=True) load_design_doc(EVENT_DESIGN_DOC, DB_EVENTS) self.logger = logging.getLogger("EventResource")
def __init__(self, Db=Database): self.db = Db() self.db.create_db(DB_FRIEND_GROUPS, ignore_exists=True) load_design_doc(FRIEND_DESIGN_DOC, DB_FRIEND_GROUPS) self.logger = logging.getLogger("UserResource")