예제 #1
0
파일: volume.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()
     API.__init__(self, col_name=col_name, collection=collection, doc=doc)
예제 #2
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)
예제 #3
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)
예제 #4
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)
예제 #5
0
파일: api.py 프로젝트: yimiqisan/vision
 def __init__(self, idx):
     self.idx = idx
     DB_CON.register([IdDoc])
     self.datastore = DB_CON[DB_NAME]
     self.collection = self.datastore[IdDoc.__collection__]