Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call NameLoad Num Return NameLoad decorator_list decorator_list
N/A pymongo collection pymongo mongo_client pymongo database pymongo mongo_replica_set_client flask abort MongoClient N/A N/A mongo_client MongoClient N/A N/A Returns instances of :class:`flask_pymongo.wrappers.Database` instead
    of :class:`pymongo.database.Database` when accessed with dot notation.
     __getattr__ N/A N/A self name N/A N/A N/A attr N/A N/A N/A super MongoClient self __getattr__ name N/A N/A isinstance attr N/A database Database N/A N/A N/A Database self name N/A attr N/A __getitem__ N/A N/A self item N/A N/A N/A attr N/A N/A N/A super MongoClient self __getitem__ item N/A N/A isinstance attr N/A database Database N/A N/A N/A Database self item N/A attr N/A N/A MongoReplicaSetClient N/A N/A mongo_replica_set_client MongoReplicaSetClient N/A N/A Returns instances of :class:`flask_pymongo.wrappers.Database`
    instead of :class:`pymongo.database.Database` when accessed with dot
    notation.   __getattr__ N/A N/A self name N/A N/A N/A attr N/A N/A N/A super MongoReplicaSetClient self __getattr__ name N/A N/A isinstance attr N/A database Database N/A N/A N/A Database self name N/A attr N/A __getitem__ N/A N/A self item N/A N/A N/A item_ N/A N/A N/A super MongoReplicaSetClient self __getitem__ item N/A N/A isinstance item_ N/A database Database N/A N/A N/A Database self item N/A item_ N/A N/A Database N/A N/A database Database N/A N/A Returns instances of :class:`flask_pymongo.wrappers.Collection`
    instead of :class:`pymongo.collection.Collection` when accessed with dot
    notation.
     __getattr__ N/A N/A self name N/A N/A N/A attr N/A N/A N/A super Database self __getattr__ name N/A N/A isinstance attr N/A collection Collection N/A N/A N/A Collection self name N/A attr N/A __getitem__ N/A N/A self item N/A N/A N/A item_ N/A N/A N/A super Database self __getitem__ item N/A N/A isinstance item_ N/A collection Collection N/A N/A N/A Collection self item N/A item_ N/A N/A Collection N/A N/A collection Collection N/A N/A Custom sub-class of :class:`pymongo.collection.Collection` which
    adds Flask-specific helper methods.
     __getattr__ N/A N/A self name N/A N/A N/A attr N/A N/A N/A super Collection self __getattr__ name N/A N/A isinstance attr N/A collection Collection N/A N/A db N/A self _Collection__database N/A N/A Collection db N/A attr name N/A attr N/A __getitem__ N/A N/A self item N/A N/A N/A item_ N/A N/A N/A super Collection self __getitem__ item N/A N/A isinstance item_ N/A collection Collection N/A N/A db N/A self _Collection__database N/A N/A Collection db N/A item_ name N/A item_ N/A find_one_or_404 N/A N/A self N/A args kwargs N/A N/A Find and return a single document, or raise a 404 Not Found
        exception if no document matches the query spec. See
        :meth:`~pymongo.collection.Collection.find_one` for details.

        .. code-block:: python

            @app.route('/user/<username>')
            def user_profile(username):
                user = mongo.db.users.find_one_or_404({'_id': username})
                return render_template('user.html',
                    user=user)
         N/A found N/A N/A self find_one args kwargs N/A N/A found None N/A N/A N/A abort 404 N/A found N/A N/A