Why don't you put your model definitions in modules (either inside of functions or classes)? Then, when you need a particular model or set of models, just import the relevant function/class and call it with whatever arguments are needed to give you the models you want.
On Friday, January 17, 2014 10:45:24 AM UTC-5, Arnon Marcus wrote: > > I guess we can try to do conditional executions... > It's quite a hassle, though, as the controllers don't do all the work - > most of our queries are in fact in separate modules that the controllers > use, which make it much eazier to maintain but it would make it more > difficult to segregate the conditionallity of schema-definitions based on > controllers.. Not sure what other criteria we could use though... -- 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.

