Module Expr Str ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad body If CompareIs NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad ListComp BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Module containing functions and classes specific to the permission model.
 flask current_app flaskext.auth.auth get_current_user_data not_logged_in has_permission N/A N/A role resource action N/A N/A N/A Function to check if a user has the specified permission. N/A role N/A N/A N/A current_app auth load_role role N/A N/A role N/A N/A role has_permission resource action False N/A permission_required N/A N/A resource action callback N/A None N/A N/A 
    Decorator for views that require a certain permission of the logged in 
    user.
     wrap N/A N/A func N/A N/A decorator N/A N/A N/A args kwargs N/A N/A user_data N/A get_current_user_data N/A N/A user_data None N/A N/A N/A not_logged_in callback args kwargs N/A N/A N/A has_permission N/A N/A user_data get role resource action N/A N/A N/A callback None N/A N/A N/A N/A N/A current_app auth not_permitted_callback args kwargs N/A N/A N/A callback args kwargs N/A N/A callback args kwargs N/A N/A func args kwargs N/A N/A decorator N/A N/A wrap N/A Permission N/A object N/A N/A 
    Permission object, representing actions that can be taken on a resource.
    
    Attributes:

    - resource: A resource is a component on which actions can be performed.
      Examples: post, user, ticket, product, but also post.comment, user.role,
      etc.
    - action: Any action that can be performed on a resource. Names of actions
      should be short and clear. Examples: create, read, update, delete, download,
      list, etc.
     __init__ N/A N/A self resource action N/A N/A N/A N/A self resource resource N/A N/A self action action N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A self resource N/A other resource N/A N/A self action N/A other action N/A N/A Role N/A object N/A N/A 
    Role object to group users and permissions.

    Attributes:

    - name: The name of the role.
    - permissions: A list of permissions.
     __init__ N/A N/A self name permissions N/A N/A N/A N/A self name name N/A N/A self permissions permissions N/A has_permission N/A N/A self resource action N/A N/A N/A N/A any N/A N/A N/A resource N/A perm resource N/A action N/A perm action N/A perm N/A self permissions N/A N/A