oshipka/vm_gen/templates/routes_py
2020-06-05 12:38:25 +02:00

48 lines
1.5 KiB
Plaintext

"""
!!!AUTOGENERATED: DO NOT EDIT!!!
Edit the hooks in webapp/routes/[[ name|camel_to_snake ]]_hooks.py instead
"""
from oshipka.webapp import app
from oshipka.webapp.views import ModelView
from webapp.models import [[ name ]]
from webapp.routes.[[ name|camel_to_snake ]]_hooks import *
ModelView(app, [[name]]).register_get(
template_func=get_template_func,
template_ctx_func=get_templ_ctx_func,
get_func=get_func,
post_get_func=post_get_func,
)
ModelView(app, [[name]]).register_list(
template_func=list_template_func,
template_ctx_func=list_templ_ctx_func,
list_func=list_func,
post_list_func=post_list_func,
)
ModelView(app, [[name]]).register_create(
template_func=create_template_func,
template_ctx_func=create_templ_ctx_func,
args_process_func=create_args_process_func,
should_func=create_should_func,
post_add=create_post_add_func,
post_commit=create_post_commit_func,
)
ModelView(app, [[name]]).register_update(
template_func=update_template_func,
template_ctx_func=update_templ_ctx_func,
args_process_func=update_args_process_func,
should_func=update_should_func,
post_add=update_post_add_func,
post_commit=update_post_commit_func,
)
ModelView(app, [[name]]).register_delete(
template_func=delete_template_func,
template_ctx_func=delete_templ_ctx_func,
args_process_func=delete_args_process_func,
should_func=delete_should_func,
post_add=delete_post_delete_func,
post_commit=delete_post_commit_func,
)