コード例 #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__]