""" !!!AUTOGENERATED: DO NOT EDIT!!! Edit the hooks in webapp/routes/tag_hooks.py instead """ from flask import render_template from flask_security import login_required from oshipka.webapp import app from oshipka.webapp.views import ModelView from webapp.routes.tag_hooks import * from webapp.models import Tag tag = ModelView(app, Tag, {'name': 'Tag', 'inherits': ['Ownable'], 'access': [{'verb': 'all', 'login_required': True, 'roles_required': ['admin']}, {'verb': 'get', 'login_required': False}, {'verb': 'list', 'login_required': False}, {'verb': 'table', 'login_required': False}, {'verb': 'search', 'login_required': False}], 'columns': [{'name': 'name', '_type': 'db.UnicodeText'}], 'display': {'primary': 'name'}, '_verbs': {'get': {'per_item': 'True', 'methods': ['GET'], 'is_login_required': False, 'the_roles_required': []}, 'list': {'per_item': 'False', 'methods': ['GET'], 'is_login_required': False, 'the_roles_required': []}, 'table': {'per_item': 'False', 'methods': ['GET'], 'is_login_required': False, 'the_roles_required': []}, 'search': { 'per_item': 'False', 'methods': ['GET'], 'is_login_required': False, 'the_roles_required': []}, 'create': {'per_item': 'False', 'methods': ['GET', 'POST'], 'is_login_required': True, 'the_roles_required': ['admin']}, 'update': {'per_item': 'True', 'methods': ['GET', 'POST'], 'is_login_required': True, 'the_roles_required': ['admin']}, 'delete': {'per_item': 'True', 'methods': ['GET', 'POST'], 'is_login_required': True, 'the_roles_required': ['admin']}}, 'acls': {'get': {'authn': False, 'authz': []}, 'list': {'authn': False, 'authz': []}, 'table': {'authn': False, 'authz': []}, 'search': {'authn': False, 'authz': []}, 'create': {'authn': True, 'authz': ['admin']}, 'update': {'authn': True, 'authz': ['admin']}, 'delete': {'authn': True, 'authz': ['admin']}}}) tag.register_verb(view_context=get_view_context, verb="get", methods=['GET'], per_item=True, is_login_required=False, the_roles_required=[], ) tag.register_verb(view_context=list_view_context, verb="list", methods=['GET'], per_item=False, is_login_required=False, the_roles_required=[], ) tag.register_verb(view_context=table_view_context, verb="table", methods=['GET'], per_item=False, is_login_required=False, the_roles_required=[], ) tag.register_verb(view_context=search_view_context, verb="search", methods=['GET'], per_item=False, is_login_required=False, the_roles_required=[], ) tag.register_verb(view_context=create_view_context, verb="create", methods=['GET', 'POST'], per_item=False, is_login_required=True, the_roles_required=['admin'], ) tag.register_verb(view_context=update_view_context, verb="update", methods=['GET', 'POST'], per_item=True, is_login_required=True, the_roles_required=['admin'], ) tag.register_verb(view_context=delete_view_context, verb="delete", methods=['GET', 'POST'], per_item=True, is_login_required=True, the_roles_required=['admin'], )