On Wednesday, October 19, 2016 at 7:34:40 AM UTC-4, Mirek Zvolský wrote:
>
> I think in the alphabetically first model I will use
>
> if request.controller == '':
> response.models_to_run = ...
>
>
Are you saying you will specifically use the value '' for
request.controller? Your code should look like this:
if request.controller == 'my_upload_controller':
response.models_to_run = []
To prevent *any *model code from being executed, create a model file that
comes first alphabetically, and include only the above two lines in it.
If all the Ajax calls go to a single function within a given controller,
then the above condition could instead specify request.function.
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 [email protected].
For more options, visit https://groups.google.com/d/optout.