Module Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias identifier ImportFrom alias alias ClassDef bases NameLoad body Assign NameStore Dict Str Str Str Str Str Num Num Num Num Num FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str If CompareNotIn Str NameLoad body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr Return Call NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Return Call NameLoad NameLoad NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Return Call NameLoad NameLoad NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call NameLoad Call NameLoad Str Str Return Call NameLoad Call NameLoad Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call NameLoad Call NameLoad Str Str Return Call NameLoad Str If CompareLt SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr body Return Call NameLoad Num Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str NameLoad 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 NameParam defaults body FunctionDef arguments args defaults vararg kwarg body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Return Call NameLoad Num Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareLt BinOpSub NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad Str Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args defaults body If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Return NameLoad If CompareNotEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Return NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot NameLoad body Return NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body If CompareNotIn Str NameLoad body Return Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotEq Call NameLoad NameLoad Num body Return NameLoad Assign TupleStore NameStore NameStore NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Return NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad Num body Return NameLoad If CompareGt NameLoad BinOpMult BinOpMult BinOpMult NameLoad Num Num Num body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list
N/A N/A time N/A base64 N/A hashlib N/A functools flask g request session current_app flask flash url_for redirect abort flask.ext.babel lazy_gettext _ models Account cache require_role N/A object N/A N/A roles N/A spam new user staff admin 0 1 2 3 4 __init__ N/A N/A self role N/A N/A N/A N/A self role role N/A __call__ N/A N/A self method N/A N/A wrapper N/A N/A N/A args kwargs N/A N/A N/A N/A g user N/A N/A url N/A url_for account.signin N/A N/A ? url N/A N/A url N/A ?next= N/A request url N/A N/A redirect url N/A N/A N/A self role None N/A N/A N/A method args kwargs N/A N/A N/A N/A g user id 1 N/A N/A N/A method args kwargs N/A N/A N/A N/A g user role new N/A N/A N/A flash N/A _ Please verify your email warn N/A N/A redirect N/A url_for account.setting N/A N/A N/A N/A g user role spam N/A N/A N/A flash N/A _ You are a spammer error N/A N/A redirect / N/A N/A N/A N/A self roles N/A N/A N/A g user role N/A N/A self roles N/A N/A self role N/A N/A N/A abort 403 N/A N/A method args kwargs N/A N/A N/A functools wraps method N/A wrapper N/A N/A N/A require_login N/A require_role None N/A require_user N/A require_role user N/A require_staff N/A require_role staff N/A require_admin N/A require_role admin limit_request N/A object N/A N/A 
    Limitations on user requests.

    :param seconds: next request should be after N seconds
    :param prefix: cache key prefix
    :param method: the method of the request
    :param redirect_url: redirect when exceeding limited time

    The redirect_url can be a string or function. When it is a function,
    it accepts the same parameters as the wrapped methods.
     __init__ N/A N/A self seconds prefix method redirect_url N/A 0 None POST None N/A N/A N/A self seconds seconds N/A N/A self prefix prefix N/A N/A self method method N/A N/A self redirect_url redirect_url N/A __call__ N/A N/A self method N/A N/A wrapper N/A N/A N/A args kwargs N/A N/A N/A N/A request method N/A self method N/A N/A N/A method args kwargs N/A N/A N/A g user N/A N/A N/A abort 403 N/A prefix N/A self prefix N/A N/A prefix None N/A N/A prefix N/A request path N/A key N/A %s-%s-%i N/A prefix N/A self method N/A N/A g user id N/A now N/A N/A time time N/A last_cached N/A N/A cache get key N/A N/A last_cached N/A N/A now last_cached N/A self seconds N/A N/A N/A flash N/A _ Too many requests in a time warn N/A redirect_url N/A N/A self redirect_url N/A request url N/A N/A callable redirect_url N/A N/A redirect_url N/A redirect_url args kwargs N/A N/A redirect redirect_url N/A N/A N/A cache set key now N/A N/A method args kwargs N/A N/A N/A functools wraps method N/A wrapper N/A N/A get_current_user N/A N/A N/A N/A N/A N/A N/A id session N/A token session N/A N/A user N/A N/A N/A Account query get N/A int N/A session N/A id N/A N/A user N/A N/A None N/A N/A N/A user token N/A session N/A token N/A N/A None N/A user N/A None N/A login_user N/A N/A user permanent N/A False N/A N/A N/A user N/A N/A None N/A N/A session N/A id N/A user id N/A N/A session N/A token N/A user token N/A permanent N/A N/A N/A session permanent True N/A user N/A logout_user N/A N/A N/A N/A N/A N/A id session N/A N/A N/A N/A N/A session pop id N/A N/A N/A session pop token N/A create_auth_token N/A N/A user N/A N/A N/A timestamp N/A int N/A N/A time time N/A secret N/A current_app secret_key N/A token N/A %s%s%s%s N/A secret timestamp N/A user id N/A user token N/A hsh N/A N/A N/A N/A hashlib sha1 token hexdigest N/A N/A N/A base64 b32encode N/A %s|%s|%s N/A timestamp N/A user id hsh N/A verify_auth_token N/A N/A token expires N/A 30 N/A N/A N/A N/A token N/A N/A base64 b32decode token N/A N/A N/A N/A None N/A bits N/A N/A token split | N/A N/A N/A len bits 3 N/A N/A None N/A N/A timestamp user_id hsh bits N/A N/A N/A timestamp N/A int timestamp N/A user_id N/A int user_id N/A N/A N/A N/A None N/A delta N/A N/A N/A time time timestamp N/A N/A delta 0 N/A N/A None N/A N/A delta N/A N/A N/A expires 60 60 24 N/A N/A None N/A user N/A N/A N/A Account query get user_id N/A N/A user N/A N/A None N/A secret N/A current_app secret_key N/A _hsh N/A N/A hashlib sha1 N/A %s%s%s%s N/A secret timestamp user_id N/A user token N/A N/A hsh N/A N/A _hsh hexdigest N/A N/A user N/A None N/A force_int N/A N/A value default N/A 1 N/A N/A N/A N/A N/A int value N/A N/A N/A N/A default N/A