Module Import alias Import alias identifier Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call NameLoad Call NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Call NameLoad Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If BoolOpAnd AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str If UnaryOpNot NameLoad body Return Call NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call NameLoad Num If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Num Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Dict decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareNotEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Num keyword NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad Str Str Return Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call NameLoad Str keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str orelse TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call NameLoad Str keyword NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad Str decorator_list Call NameLoad Str keyword TupleLoad Str Str Call NameLoad Str keyword TupleLoad Str Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad Str Str Return Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call NameLoad Str NameLoad Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad Str decorator_list Call NameLoad Str keyword TupleLoad Str Str Call NameLoad Str keyword TupleLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Return Call NameLoad Call NameLoad Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad Str Return Call NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad Str Return Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad BinOpMod Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call NameLoad Str keyword NameLoad Str orelse TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad Str keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call NameLoad Str keyword NameLoad Str Return Call NameLoad NameLoad decorator_list Call NameLoad Str keyword TupleLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Return Call NameLoad Call NameLoad Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad Str Return Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call NameLoad Str Return Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad Str keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call NameLoad Str keyword NameLoad Str Return Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list Call NameLoad Str keyword TupleLoad Str Str decorator_list
N/A N/A os N/A os.path op N/A platform N/A urlparse N/A re N/A shutil operator itemgetter werkzeug secure_filename flask flash url_for redirect abort request flask_superadmin.base BaseView expose flask_superadmin.babel gettext lazy_gettext flask_superadmin form flask_wtf.file FileField wtforms TextField ValidationError NameForm N/A N/A form BaseForm N/A N/A 
        Form with a filename input field.

        Validates if provided name is valid for *nix and Windows systems.
     N/A name N/A TextField N/A regexp N/A N/A re compile ^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)[^\x00-\x1f\\?*:\";|/]+$ validate_name N/A N/A self field N/A N/A N/A N/A N/A N/A N/A self regexp match N/A field data N/A N/A N/A ValidationError N/A gettext Invalid directory name N/A N/A UploadForm N/A N/A form BaseForm N/A N/A 
        File upload form. Works with FileAdmin instance to check if it
        is allowed to upload file with given extension.
     N/A upload N/A FileField N/A lazy_gettext File to upload __init__ N/A N/A self admin N/A N/A N/A N/A self admin admin N/A N/A N/A N/A super UploadForm self __init__ N/A validate_upload N/A N/A self field N/A N/A N/A N/A N/A N/A N/A self upload has_file N/A N/A N/A ValidationError N/A gettext File required. N/A filename N/A N/A N/A self upload data filename N/A N/A N/A N/A N/A self admin is_file_allowed filename N/A N/A N/A ValidationError N/A gettext Invalid file type. N/A N/A FileAdmin N/A BaseView N/A N/A 
        Simple file-management interface.

        Requires two parameters:

        `path`
            Path to the directory which will be managed
        `url`
            Base URL for the directory. Will be used to generate
            static links to the files.

        Sample usage::

            admin = Admin()

            path = op.join(op.dirname(__file__), 'static')
            admin.add_view(FileAdmin(path, '/static/', name='Static Files'))
            admin.setup_app(app)
     N/A can_upload True N/A 
        Is file upload allowed.
     N/A can_delete True N/A 
        Is file deletion allowed.
     N/A can_delete_dirs True N/A 
        Is recursive directory deletion is allowed.
     N/A can_mkdir True N/A 
        Is directory creation allowed.
     N/A can_rename True N/A 
        Is file and directory renaming allowed.
     N/A allowed_extensions None N/A 
        List of allowed extensions for uploads, in lower case.

        Example::

            class MyAdmin(FileAdmin):
                allowed_extensions = ('swf', 'jpg', 'gif', 'png')
     N/A list_template admin/file/list.html N/A 
        File list template
     N/A upload_template admin/file/form.html N/A 
        File upload template
     N/A mkdir_template admin/file/form.html N/A 
        Directory creation (mkdir) template
     N/A rename_template admin/file/rename.html N/A 
        Rename template
     __init__ N/A N/A self base_path base_url name category endpoint url N/A None None None None N/A N/A 
            Constructor.

            `base_path`
                Base file storage location
            `base_url`
                Base URL for the files
            `name`
                Name of this view. If not provided,
                will be defaulted to the class name.
            `category`
                View category
            `endpoint`
                Endpoint name for the view
            `url`
                URL for view
         N/A N/A self base_path base_path N/A N/A self base_url base_url N/A N/A self _on_windows N/A N/A N/A platform system Windows N/A N/A N/A self allowed_extensions N/A N/A isinstance N/A self allowed_extensions set N/A N/A N/A self allowed_extensions N/A set N/A self allowed_extensions N/A N/A N/A N/A super FileAdmin self __init__ name category endpoint url N/A is_accessible_path N/A N/A self path N/A N/A N/A 
            Verify if path is accessible for current user.

            Override to customize behavior.

            `path`
                Relative path to the root
         N/A True N/A get_base_path N/A N/A self N/A N/A N/A 
            Return base path. Override to customize behavior (per-user
            directories, etc)
         N/A N/A N/A op normpath N/A self base_path N/A get_base_url N/A N/A self N/A N/A N/A 
            Return base URL. Override to customize behavior (per-user
            directories, etc)
         N/A N/A self base_url N/A is_file_allowed N/A N/A self filename N/A N/A N/A 
            Verify if file can be uploaded.

            Override to customize behavior.

            `filename`
                Source file name
         N/A ext N/A N/A N/A N/A N/A op splitext filename N/A 1 lower N/A N/A N/A ext startswith . N/A N/A ext N/A ext N/A 1 N/A N/A N/A self allowed_extensions N/A ext N/A self allowed_extensions N/A N/A False N/A True N/A is_in_folder N/A N/A self base_path directory N/A N/A N/A 
            Verify if `directory` is in `base_path` folder
         N/A N/A N/A N/A N/A op normpath directory startswith base_path N/A save_file N/A N/A self path file_data N/A N/A N/A 
            Save uploaded file to the disk

            `path`
                Path to save to
            `file_data`
                Werkzeug `FileStorage` object
         N/A N/A N/A file_data save path N/A _get_dir_url N/A N/A self endpoint path N/A kwargs N/A N/A 
            Return prettified URL

            `endpoint`
                Endpoint name
            `path`
                Directory path
            `kwargs`
                Additional arguments
         N/A N/A path N/A N/A N/A url_for endpoint N/A N/A N/A self _on_windows N/A N/A path N/A N/A path replace \ / N/A N/A kwargs N/A path path N/A N/A url_for endpoint kwargs N/A _get_file_url N/A N/A self path N/A N/A N/A 
            Return static file url

            `path`
                Static file path
         N/A base_url N/A N/A self get_base_url N/A N/A N/A urlparse urljoin base_url path N/A _normalize_path N/A N/A self path N/A N/A N/A 
            Verify and normalize path.

            If path is not relative to the base directory,
            will throw 404 exception.

            If path does not exist, will also throw 404 exception.
         N/A base_path N/A N/A self get_base_path N/A N/A path None N/A N/A directory base_path N/A path N/A N/A path N/A N/A op normpath path N/A directory N/A N/A op normpath N/A N/A op join base_path path N/A N/A N/A N/A self is_in_folder base_path directory N/A N/A N/A abort 404 N/A N/A N/A N/A op exists directory N/A N/A N/A abort 404 N/A N/A base_path directory path N/A field_name N/A N/A self text N/A N/A N/A N/A N/A text capitalize N/A get_readonly_fields N/A N/A self instance N/A N/A N/A N/A N/A index N/A N/A self path N/A None N/A N/A 
            Index view method

            `path`
                Optional directory path. If not provided,
                will use base directory
         N/A N/A base_path directory path N/A N/A self _normalize_path path N/A items N/A N/A N/A directory base_path N/A N/A parent_path N/A N/A op normpath N/A N/A op join path .. N/A N/A parent_path . N/A N/A parent_path None N/A N/A N/A items append N/A .. parent_path True 0 N/A f N/A N/A os listdir directory N/A N/A fp N/A N/A op join directory f N/A N/A N/A items append N/A f N/A N/A op join path f N/A N/A op isdir fp N/A N/A op getsize fp N/A N/A N/A items sort key N/A itemgetter 2 reverse True N/A accumulator N/A N/A breadcrumbs N/A N/A n N/A N/A path split N/A os sep N/A N/A N/A N/A accumulator append n N/A N/A N/A breadcrumbs append N/A n N/A N/A op join accumulator N/A N/A N/A self render N/A self list_template dir_path path breadcrumbs breadcrumbs get_dir_url N/A self _get_dir_url get_file_url N/A self _get_file_url items items base_path base_path N/A N/A expose / N/A expose /b/<path:path> upload N/A N/A self path N/A None N/A N/A 
            Upload view method

            `path`
                Optional directory path. If not provided,
                will use base directory
         N/A N/A base_path directory path N/A N/A self _normalize_path path N/A N/A N/A self can_upload N/A N/A N/A flash N/A gettext File uploading is disabled. error N/A N/A redirect N/A N/A self _get_dir_url .index path N/A form N/A UploadForm self N/A N/A N/A form validate_on_submit N/A N/A filename N/A N/A op join directory N/A secure_filename N/A N/A N/A form upload data filename N/A N/A N/A op exists filename N/A N/A N/A flash N/A gettext File "%(name)s" already exists. name N/A N/A N/A form upload data filename error N/A N/A N/A N/A N/A N/A self save_file filename N/A N/A form upload data N/A N/A redirect N/A N/A self _get_dir_url .index path N/A N/A N/A Exception N/A ex N/A N/A N/A flash N/A gettext Failed to save file: %(error)s error ex N/A N/A N/A self render N/A self upload_template form form base_path base_path path path msg N/A gettext Upload a file N/A N/A expose /upload/ methods N/A GET POST N/A expose /upload/<path:path> methods N/A GET POST mkdir N/A N/A self path N/A None N/A N/A 
            Directory creation view method

            `path`
                Optional directory path. If not provided,
                will use base directory
         N/A N/A base_path directory path N/A N/A self _normalize_path path N/A dir_url N/A N/A self _get_dir_url .index path N/A N/A N/A self can_mkdir N/A N/A N/A flash N/A gettext Directory creation is disabled. error N/A N/A redirect dir_url N/A form N/A NameForm N/A request form N/A N/A N/A form validate_on_submit N/A N/A N/A N/A N/A N/A os mkdir N/A N/A op join directory N/A N/A form name data N/A N/A redirect dir_url N/A N/A N/A Exception N/A ex N/A N/A N/A flash N/A gettext Failed to create directory: %(error)s ex error N/A N/A N/A self render N/A self mkdir_template form form dir_url dir_url base_path base_path path path msg N/A gettext Create a new directory N/A N/A expose /mkdir/ methods N/A GET POST N/A expose /mkdir/<path:path> methods N/A GET POST delete N/A N/A self N/A N/A N/A 
            Delete view method
         N/A path N/A N/A N/A request form get path N/A N/A path N/A N/A N/A redirect N/A url_for .index N/A N/A base_path full_path path N/A N/A self _normalize_path path N/A return_url N/A N/A self _get_dir_url .index N/A N/A op dirname path N/A N/A N/A self can_delete N/A N/A N/A flash N/A gettext Deletion is disabled. N/A N/A redirect return_url N/A N/A N/A op isdir full_path N/A N/A N/A N/A self can_delete_dirs N/A N/A N/A flash N/A gettext Directory deletion is disabled. N/A N/A redirect return_url N/A N/A N/A N/A N/A shutil rmtree full_path N/A N/A flash N/A gettext N/A Directory "%s" was successfully deleted. path N/A N/A N/A Exception N/A ex N/A N/A N/A flash N/A gettext Failed to delete directory: %(error)s error ex error N/A N/A N/A N/A N/A N/A os remove full_path N/A N/A flash N/A gettext File "%(name)s" was successfully deleted. name path N/A N/A N/A Exception N/A ex N/A N/A N/A flash N/A gettext Failed to delete file: %(name)s name ex error N/A N/A redirect return_url N/A N/A expose /delete/ methods N/A POST rename N/A N/A self N/A N/A N/A 
            Rename view method
         N/A path N/A N/A N/A request args get path N/A N/A path N/A N/A N/A redirect N/A url_for .index N/A N/A base_path full_path path N/A N/A self _normalize_path path N/A return_url N/A N/A self _get_dir_url .index N/A N/A op dirname path N/A N/A N/A self can_rename N/A N/A N/A flash N/A gettext Renaming is disabled. N/A N/A redirect return_url N/A N/A N/A N/A op exists full_path N/A N/A N/A flash N/A gettext Path does not exist. N/A N/A redirect return_url N/A form N/A NameForm N/A request form name N/A N/A op basename path N/A N/A N/A form validate_on_submit N/A N/A N/A N/A dir_base N/A N/A op dirname full_path N/A filename N/A secure_filename N/A N/A form name data N/A N/A N/A os rename full_path N/A N/A op join dir_base filename N/A N/A flash N/A gettext Successfully renamed "%(src)s" to "%(dst)s" src N/A N/A op basename path dst filename N/A N/A N/A Exception N/A ex N/A N/A N/A flash N/A gettext Failed to rename: %(error)s error ex error N/A N/A redirect return_url N/A N/A N/A self render N/A self rename_template form form path N/A N/A op dirname path name N/A N/A op basename path dir_url return_url base_path base_path N/A N/A expose /rename/ methods N/A GET POST N/A