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)
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)
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)
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)
def __init__(self, idx): self.idx = idx DB_CON.register([IdDoc]) self.datastore = DB_CON[DB_NAME] self.collection = self.datastore[IdDoc.__collection__]