oshipka/vm_gen/templates/routes_py
2020-06-06 13:33:39 +02:00

18 lines
730 B
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(view_context=get_view_context)
ModelView(app, [[name]]).register_list(view_context=list_view_context)
ModelView(app, [[name]]).register_search(view_context=search_view_context)
ModelView(app, [[name]]).register_create(view_context=create_view_context)
ModelView(app, [[name]]).register_update(view_context=update_view_context)
ModelView(app, [[name]]).register_delete(view_context=delete_view_context)