def get_backup_plan(plan_id):
    return get_mbs().plan_collection.get_by_id(objectiditify(plan_id))
Пример #2
0
 def remove_by_id(self, object_id):
     object_id = objectiditify(object_id)
     return ObjectCollection.remove_by_id(self, object_id)
Пример #3
0
 def get_by_id(self, task_id):
     task_id = objectiditify(task_id)
     q = {
         "_id": task_id
     }
     return self.find_one(q)
Пример #4
0
 def get_by_id(self, object_id):
     object_id = objectiditify(object_id)
     q = {
         "_id": object_id
     }
     return self.find_one(q)
Пример #5
0
def get_backup_plan(plan_id):
    return get_mbs().plan_collection.get_by_id(objectiditify(plan_id))
Пример #6
0
 def get_by_id(self, task_id):
     task_id = objectiditify(task_id)
     q = {"_id": task_id}
     return self.find_one(q)
Пример #7
0
 def remove_by_id(self, object_id):
     object_id = objectiditify(object_id)
     return ObjectCollection.remove_by_id(self, object_id)
Пример #8
0
 def get_by_id(self, object_id):
     object_id = objectiditify(object_id)
     q = {"_id": object_id}
     return self.find_one(q)