On Wednesday, October 19, 2016 at 5:26:18 AM UTC-4, Nico de Groot wrote:
>
> You could use conditional models. Just make an empty folder in /models 
> with the name of a (new) controller. Put the functions that don't need any 
> models inside that controller.


Making an empty model folder associated with a given controller is 
unnecessary, as it will have no effect. All files in the top level of the 
/models folder will still be executed, and by default (without changing 
response.models_to_run), any models in subfolders *not* associated with the 
current request will not be run anyway. So, no need for the empty folder.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to