On Thursday, October 3, 2013 11:09:23 PM UTC-4, Anthony wrote:

> An alternative would be something like this: 
>
> what_models_to_be_executed = {"C1": ["tab1.py", "tab2.py", "tab3.py"], 
>> "C2": "tab2.py"} 
>> response.models_to_run = what_models_to_be_executed[request.controller] 
>>
>
> Note, it must be a list (above, in the case of C2, it would just be a 
> string).
>

Never mind -- it does not have to be a list -- can just be a string. 

-- 
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/groups/opt_out.

Reply via email to