API

views

class flask_exts.views.user.view.UserView(name='User', endpoint='user', url='/user', template_folder=None, static_folder=None, static_url_path=None, menu_class_name=None, menu_icon_type=None, menu_icon_value=None)

Default administrative interface index page when visiting the /user/ URL.

allow(*args, **kwargs)

Override this method to add permission checks.

It does not make any assumptions about the authentication system used in your application, so it is up to you to implement it.

By default, it will allow access for everyone.

create_blueprint()

Create Flask blueprint.

get_url(endpoint, **kwargs)

Generate URL for the endpoint. If you want to customize URL generation logic (persist some query string argument, for example), this is right place to do it.

Parameters:
  • endpoint – Flask endpoint name

  • kwargs – Arguments for url_for

inaccessible_callback(fn, **kwargs)

Handle the response to inaccessible views.

By default, it throw HTTP 403 error. Override this method to customize the behaviour.

is_accessible()

Override this method to add permission checks.

It does not make any assumptions about the authentication system used in your application, so it is up to you to implement it.

By default, it will allow access for everyone.

render(template, **kwargs)

Render template

Parameters:
  • template – Template path to render

  • kwargs – Template arguments