

@classmethod
def find(klass, *args, **kwargs):
    '\n        Find a list of objects in the database, takes standard PyMongo-style input\n        parameters (blocking)::\n\n            users = User.find({}) #gets all users in the database\n            print users\n\n        '
    from Mojo.ServerHelpers.RunServer import BACKEND_COLLECTION, DATABASE
    klass.collection_name = klass.__name__
    if DATABASE:
        if BACKEND_COLLECTION:
            this_collection = BACKEND_COLLECTION(DATABASE, klass)
            ret_obj = this_collection.find(*args, **kwargs)
            return this_collection

dataset/ETHPy150Open lonelycode/Mojo/Mojo/ObjectMapper/ModelPrototype.py Model.find/VarMisuse@73/174 `ret_obj`->`this_collection`