Ejemplo n.º 1
0
 def __init__(self, Db=Database):
     self.db = Db()
     self.logger = logging.getLogger("UserSearchResource")
     load_design_doc(USER_SEARCH_DESIGN_DOC, DB_USER)
Ejemplo n.º 2
0
 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")
Ejemplo n.º 3
0
 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")