I put it at the top of the C1 model and I know it is being executed... I'll step through more and see what's happening On 04/10/2013 12:55 pm, "Anthony" <[email protected]> wrote:
> > Right now I have at the top of C1 >> response.models_to_run['.*'] (just for debugging) but I still get a >> ticket saying that >> > > Are you saying you put that line at the top of the C1 controller? If so, > that's too late -- the controller isn't run until after the models have > been executed. You have to set/change response.models_to_run in one or more > model files. By default: > > response.models_to_run = [r'^\w+\.py$', r'^%s/\w+\.py$' % request. > controller, > r'^%s/%s/\w+\.py$' % (request.controller,request > .function)] > > which sets up the standard conditional models. > > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/OiZ6vwaNuEU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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.

