示例#1
0
 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__]