예제 #1
0
파일: event.py 프로젝트: yimiqisan/huwai2
 def __init__(self, db_name=DB_NAME):
     DB_CON.register([EventDoc])
     datastore = DB_CON[db_name]
     col_name = EventDoc.__collection__
     collection = datastore[col_name]
     doc = collection.EventDoc()
     API.__init__(self, db_name=db_name, col_name=col_name, collection=collection, doc=doc)
예제 #2
0
파일: user.py 프로젝트: yimiqisan/huwai
 def __init__(self):
     DB_CON.register([UserDoc])
     datastore = DB_CON[DB_NAME]
     col_name = UserDoc.__collection__
     collection = datastore[col_name]
     doc = collection.UserDoc()
     API.__init__(self, col_name=col_name, collection=collection, doc=doc)
예제 #3
0
파일: component.py 프로젝트: yimiqisan/xiha
 def __init__(self, id=None):
     DB_CON.register([TopicDoc])
     datastroe = DB_CON[DB_NAME]
     col_name = TopicDoc.__collection__
     collection = datastroe[col_name]
     doc = collection.TopicDoc()
     API.__init__(self, id=id, col_name=col_name, collection=collection, doc=doc)
예제 #4
0
파일: collect.py 프로젝트: yimiqisan/vision
 def __init__(self):
     DB_CON.register([CollectDoc])
     datastore = DB_CON[DB_NAME]
     col_name = CollectDoc.__collection__
     collection = datastore[col_name]
     doc = collection.CollectDoc()
     self.vol = Volume()
     API.__init__(self, col_name=col_name, collection=collection, doc=doc)
예제 #5
0
 def __init__(self, ip_addr):
     API.__init__(self)
     RpiDatabase.__init__(self)
     Mesin.__init__(self, ip_addr)
     self.is_mesin_registered = self.is_macaddress_registered(
         self.mac_address)
     self.count_attendance_sent = self.get_all_attendace_sent(
         self.mac_address)
예제 #6
0
파일: staff.py 프로젝트: yimiqisan/vision
 def __init__(self):
     DB_CON.register([StaffDoc])
     datastore = DB_CON[DB_NAME]
     col_name = StaffDoc.__collection__
     collection = datastore[col_name]
     doc = collection.StaffDoc()
     self.p = Permission()
     API.__init__(self, col_name=col_name, collection=collection, doc=doc)
예제 #7
0
파일: reply.py 프로젝트: yimiqisan/vision
 def __init__(self):
     DB_CON.register([TimeLineDoc])
     datastore = DB_CON[DB_NAME]
     col_name = TimeLineDoc.__collection__
     collection = datastore[col_name]
     doc = collection.TimeLineDoc()
     self.staff = StaffAPI()
     API.__init__(self, col_name=col_name, collection=collection, doc=doc)
예제 #8
0
파일: component.py 프로젝트: yimiqisan/xiha
 def __init__(self, uid, eid, stamp):
     self.uid = uid
     self.eid = eid
     self.stamp = stamp
     DB_CON.register([TimelineDoc])
     self.datastroe = DB_CON[DB_NAME]
     col_name = stamp+'timeline'
     collection = self.datastroe[col_name]
     doc = collection.TimelineDoc()
     API.__init__(self, id=None, col_name=col_name, collection=collection, doc=doc)
예제 #9
0
파일: item.py 프로젝트: yimiqisan/vision
 def __init__(self):
     DB_CON.register([ItemDoc])
     datastore = DB_CON[DB_NAME]
     col_name = ItemDoc.__collection__
     collection = datastore[col_name]
     doc = collection.ItemDoc()
     self.rpl = Reply()
     self.stf = Staff()
     self.alt = Alert()
     API.__init__(self, col_name=col_name, collection=collection, doc=doc)
예제 #10
0
 def __init__(self, *args, **kwargs):
     API.__init__(self, *args, **kwargs)
예제 #11
0
 def __init__(self):
     API.__init__(self, url, key)
     self.beer_not_found = app.config['NO_BEER_FOUND']