Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 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)
Exemplo n.º 6
0
 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)
Exemplo n.º 7
0
 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)
Exemplo n.º 8
0
 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)
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
 def __init__(self, *args, **kwargs):
     API.__init__(self, *args, **kwargs)
Exemplo n.º 11
0
 def __init__(self):
     API.__init__(self, url, key)
     self.beer_not_found = app.config['NO_BEER_FOUND']