oshipka/vm_gen/templates/routes_py

18 lines
730 B
Plaintext
Raw Normal View History

2020-06-05 12:38:25 +02:00
"""
!!!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 *
2020-06-06 13:33:39 +02:00
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)