It doesn't seem to me to be a sort order problem. The problem seems to me to be different: the criteria for evaluating which models to execute can change while in that loop. If the criteria changes, then all candidate models (all models in other words) should be reevaluated. The loop index should reset to one. I don't know enough python yet.
On Friday, 4 October 2013 13:39:19 UTC+10, Anthony wrote: > > Oh, it looks like the issue regarding sorting of model > folders<https://groups.google.com/d/msg/web2py/ZfI7K9jW45w/1w8-qQWKqU0J>was > never fixed. > > Massimo, can we change to sort=True in compileapp.py lines > 517<https://code.google.com/p/web2py/source/browse/gluon/compileapp.py#517>and > > 521<https://code.google.com/p/web2py/source/browse/gluon/compileapp.py#521> > ? > > Anthony > > On Thursday, October 3, 2013 11:02:21 PM UTC-4, Tim Richardson wrote: >> >> 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.

