Module ImportFrom alias ImportFrom alias alias alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias Import alias Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd CompareIs Call NameLoad NameLoad NameLoad CompareIn NameLoad NameLoad CompareNotIn SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num attr Str If Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Break If Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Num Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareGt Call NameLoad SubscriptLoad NameLoad Index Num Num body Assign NameStore Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse Assign NameStore Num If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num orelse Assign NameStore Num Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd NameLoad Num Assign NameStore BinOpSub NameLoad Num If CompareLt NameLoad Num body Assign NameStore NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If NameLoad body Assign AttributeStore NameLoad attr Dict Str Str Str Str NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIn Str NameLoad body Assign NameStore Dict Str Call NameLoad SubscriptLoad NameLoad Index Str orelse If CompareIn Str NameLoad body Assign NameStore Dict Str Call NameLoad SubscriptLoad NameLoad Index Str orelse Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore BinOpMult SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore BinOpSub NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword Str attr Print NameLoad Assign NameStore DictComp NameLoad Num comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotIn NameLoad NameLoad Print NameLoad handlers ExceptHandler body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Print Str Print NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad Print Str Print NameLoad handlers ExceptHandler body Pass Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Yield Call AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Slice NameLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr ListLoad TupleLoad Str Num Slice NameLoad NameLoad Assign NameStore Dict Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad If CompareLt NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore ListLoad While Yield AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str BinOpAdd NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Return decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Return decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIn Str NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIsNot NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIsNot NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Dict Str SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return decorator_list AttributeLoad AttributeLoad NameLoad attr attr decorator_list TryExcept body ImportFrom alias handlers ExceptHandler body Assign NameStore DictComp NameLoad NameLoad comprehension NameStore ListLoad Str Str Str Str Str Assign NameStore NameLoad
N/A schematics.types.base GeoPointType schematics.types.compound ListType DictType ModelType N/A tornado.gen N/A tornado.web N/A tornado.escape schematics.exceptions ValidationError ModelConversionError bson.objectid ObjectId N/A json N/A datetime mingus.serializers JSONSerializer ModelParams N/A object N/A __init__ N/A N/A self fields args kwargs arguments N/A N/A N/A N/A self fields fields N/A N/A self args args N/A N/A self kwargs kwargs N/A N/A self arguments arguments N/A getFieldKeys N/A N/A self N/A N/A N/A N/A N/A N/A self fields keys N/A getParams N/A N/A self N/A N/A N/A 
        Check the schematic object to see if arguments from Tornado can be lists or dictionaries
         N/A types N/A DictType GeoPointType ListType ModelType N/A fieldkeys N/A N/A N/A self fields keys N/A j N/A JSONSerializer N/A N/A q N/A self arguments N/A N/A params N/A N/A N/A tornado escape to_unicode N/A N/A N/A self arguments N/A q N/A 0 N/A params N/A N/A N/A tornado escape json_decode params N/A N/A self arguments params N/A N/A N/A k v N/A N/A N/A self arguments items N/A N/A N/A N/A N/A type v list N/A k fieldkeys N/A N/A N/A self fields N/A k types N/A N/A N/A N/A self arguments N/A k N/A N/A N/A N/A N/A self arguments N/A k N/A 0 decode utf-8 N/A N/A len N/A self args N/A N/A N/A N/A self arguments N/A _id N/A N/A self args N/A 0 N/A N/A self arguments N/A getParamsParse N/A N/A self N/A N/A N/A 
        Check the schematic object to see if arguments from Tornado can be lists or dictionaries
         N/A j N/A JSONSerializer N/A N/A bulk N/A self arguments N/A N/A params N/A N/A N/A tornado escape to_unicode N/A N/A N/A self arguments N/A bulk N/A 0 N/A params N/A N/A N/A tornado escape json_decode params N/A N/A N/A self arguments N/A bulk params N/A N/A N/A k v N/A N/A N/A self arguments items N/A N/A N/A self arguments N/A N/A j deserialize k N/A N/A N/A len N/A self args N/A N/A N/A N/A self arguments N/A _id N/A N/A self args N/A 0 N/A N/A self arguments N/A N/A Model N/A object N/A N/A responseDict __init__ N/A N/A self collection schematic params N/A N/A N/A N/A self collection collection N/A N/A self schematic schematic N/A N/A self params params N/A setResponseDict N/A N/A self N/A N/A N/A 
            Main logic for request is performed here
              self.collection ( mongo collection )
              self.schematic ( schematic model )
              self.params ( ModelParams )
            Nothing is returned because generally a coroutine and yield statement is used.
         N/A pagination N/A N/A self N/A N/A N/A params N/A N/A N/A self params getParams N/A N/A limit params N/A N/A limit N/A N/A params get limit 50 N/A N/A N/A int N/A limit N/A 0 100 N/A N/A limit 100 N/A N/A limit N/A int N/A limit N/A 0 N/A N/A limit 50 N/A N/A page params N/A N/A page N/A int N/A N/A params N/A page N/A 0 N/A N/A page 1 N/A pagination N/A N/A N/A pagination N/A page page N/A N/A pagination N/A limit limit N/A N/A pagination N/A next N/A page 1 N/A previous N/A page 1 N/A N/A previous 1 N/A N/A previous None N/A N/A pagination N/A previous previous N/A pagination N/A setResponseDictSuccess N/A N/A self result meta N/A None N/A N/A meta N/A N/A N/A self responseDict N/A status meta objects Success meta result N/A N/A N/A self responseDict N/A status object Success result N/A setResponseDictErrors N/A N/A self errors N/A N/A N/A N/A self responseDict N/A status errors Errors errors N/A getIdDict N/A N/A self N/A N/A N/A params N/A N/A N/A self params getParams N/A N/A id params N/A N/A oid N/A id N/A int N/A params N/A id N/A N/A N/A _id params N/A N/A oid N/A _id N/A ObjectId N/A params N/A _id N/A N/A oid None N/A oid N/A getSlace N/A N/A self N/A pagination N/A N/A end N/A N/A pagination N/A page N/A pagination N/A limit N/A start N/A end N/A pagination N/A limit N/A slace N/A start end start end N/A slace N/A getResponseDict N/A N/A self N/A N/A N/A N/A self responseDict N/A blacklist N/A N/A self N/A N/A N/A f N/A N/A self schematic N/A N/A N/A f_whitelist N/A field N/A field N/A N/A N/A N/A f to_primitive role public keys N/A f_whitelist N/A blacklist N/A k 0 N/A k N/A N/A N/A self params getFieldKeys N/A k f_whitelist N/A blacklist N/A N/A N/A N/A blacklist None N/A blacklist N/A queryset N/A N/A self N/A N/A N/A f N/A N/A self schematic N/A params N/A N/A N/A self params getParams N/A N/A N/A query N/A N/A f queryset N/A query ~~~~~~~~~~~~~~~~~~ N/A query N/A N/A k v N/A N/A query items N/A N/A N/A params N/A k v N/A params ~~~~~~~~~~~~~~~~~~ N/A params N/A N/A N/A N/A N/A params N/A N/A ResourceModel N/A Model N/A getlist N/A N/A self uri N/A N/A N/A 
        Get a list of results
         N/A blacklist N/A N/A self blacklist N/A params N/A N/A self queryset N/A pagination N/A N/A self pagination N/A slace N/A N/A self getSlace pagination N/A N/A start end N/A N/A slace N/A start N/A slace N/A end N/A N/A N/A count N/A N/A N/A N/A N/A N/A N/A self collection find params N/A start end count N/A cursor N/A N/A N/A N/A N/A N/A self collection find params blacklist sort N/A N/A _id -1 N/A start end N/A meta N/A limit next offset previous N/A pagination N/A limit N/A pagination N/A next N/A pagination N/A page N/A pagination N/A previous N/A N/A meta N/A total_count N/A str count N/A N/A count N/A pagination N/A limit N/A N/A N/A meta N/A next None N/A objects N/A N/A N/A N/A cursor fetch_next N/A N/A obj N/A N/A cursor next_object N/A N/A obj N/A uri N/A uri N/A str N/A obj N/A _id N/A N/A N/A objects append obj N/A results N/A document N/A document objects N/A N/A N/A self setResponseDictSuccess results meta N/A N/A N/A Exception N/A e N/A N/A N/A N/A self setResponseDictErrors Not Found! N/A N/A N/A N/A tornado gen coroutine getobj N/A N/A self uri N/A N/A N/A 
        Get a single result
         N/A oid N/A N/A self getIdDict N/A blacklist N/A N/A self blacklist N/A N/A N/A result N/A N/A N/A N/A self collection find_one oid blacklist N/A N/A result N/A _id N/A str N/A result N/A _id N/A N/A result N/A uri uri N/A N/A N/A self setResponseDictSuccess result N/A N/A N/A Exception N/A e N/A N/A N/A N/A self setResponseDictErrors Not Found! N/A N/A N/A N/A tornado gen coroutine post N/A N/A self N/A N/A N/A params N/A N/A N/A self params getParamsParse N/A N/A bulk params N/A N/A N/A N/A N/A N/A self bulk N/A N/A N/A self setResponseDictSuccess N/A bulk Implemented N/A N/A N/A ValidationError N/A e N/A N/A N/A N/A self setResponseDictErrors e N/A N/A N/A obj N/A N/A self schematic params N/A N/A N/A N/A N/A obj validate N/A N/A obj created N/A N/A N/A datetime datetime utcnow N/A N/A obj _id N/A ObjectId N/A result N/A N/A N/A N/A self collection insert N/A N/A obj to_native N/A N/A N/A self setResponseDictSuccess N/A _id N/A str result N/A N/A N/A ValidationError N/A e N/A N/A N/A N/A self setResponseDictErrors N/A e messages N/A N/A N/A N/A tornado gen coroutine put N/A N/A self N/A N/A N/A params N/A N/A N/A self params getParamsParse N/A obj N/A key value N/A N/A key value N/A N/A params items N/A key _id N/A oid N/A N/A self getIdDict N/A obj_validate N/A N/A self schematic params N/A N/A N/A N/A N/A obj_validate validate N/A result N/A N/A N/A N/A self collection update oid obj upsert False N/A N/A N/A self setResponseDictSuccess N/A _id N/A str result N/A N/A N/A ValidationError N/A e N/A N/A N/A N/A self setResponseDictErrors N/A e messages N/A N/A N/A N/A tornado gen coroutine delete N/A N/A self N/A N/A N/A oid N/A N/A self getIdDict N/A N/A N/A result N/A N/A N/A N/A self collection remove oid N/A N/A N/A self setResponseDictSuccess N/A _id N/A str result N/A N/A N/A ValidationError N/A e N/A N/A N/A N/A self setResponseDictErrors e N/A N/A N/A N/A tornado gen coroutine bulk N/A N/A self N/A N/A N/A params N/A N/A N/A self params getParams N/A data N/A params N/A bulk N/A N/A N/A bulk N/A N/A N/A self collection initialize_ordered_bulk_op N/A data N/A params N/A bulk N/A N/A insert data N/A N/A obj N/A data N/A insert N/A N/A N/A obj N/A created N/A N/A N/A datetime datetime utcnow N/A N/A obj N/A _id N/A ObjectId N/A N/A N/A bulk insert obj N/A result N/A N/A N/A bulk execute N/A N/A N/A BulkWriteError N/A e N/A N/A N/A N/A self setResponseDictErrors e N/A 
            bulk = self.collection.initialize_ordered_bulk_op()
            # Remove all documents from the previous example.
            bulk.find({}).remove()
            for i in range(10000):
                bulk.insert({'_id': i})
            #bulk.insert({'_id': 2})
            #bulk.insert({'_id': 3})
            bulk.find({'_id': 1}).update({'$set': {'foo': 'bar'}})
            bulk.find({'_id': 4}).upsert().update({'$inc': {'j': 1}})
            bulk.find({'j': 1}).replace_one({'j': 2})
            result = yield bulk.execute()
             N/A N/A N/A tornado gen coroutine patch N/A N/A self N/A N/A N/A params N/A N/A N/A self params getParamsParse N/A obj N/A key value N/A N/A key value N/A N/A params items N/A key _id N/A oid N/A N/A self getIdDict N/A N/A N/A result N/A N/A N/A N/A self collection update oid N/A $set obj upsert True N/A N/A N/A self setResponseDictSuccess N/A _id N/A params N/A _id N/A N/A N/A ValidationError N/A e N/A N/A N/A N/A self setResponseDictErrors e N/A N/A N/A N/A tornado gen coroutine N/A N/A N/A services.resource models_factory N/A N/A N/A N/A models_factory N/A k ResourceModel N/A k N/A GET POST PUT DELETE PATCH N/A models models_factory