There's some discussion about adding some kind of setting that will allow you to control/override the conditional execution behavior. Hopefully we'll have something soon, but in the meantime, I suppose you could hack gluon.compileapp.run_models_in ( http://code.google.com/p/web2py/source/browse/gluon/compileapp.py?name=R-1.96.4#345). Change: if not os.path.split(model)[0] in paths: continue elif compiled: code = read_pyc(model) elif is_gae: code = getcfs(model, model, lambda: compile2(read_file(model), model)) else: code = getcfs(model, model, None) To: if compiled: code = read_pyc(model) elif is_gae: code = getcfs(model, model, lambda: compile2(read_file(model), model)) else: code = getcfs(model, model, None) Anthony
On Monday, June 20, 2011 3:57:33 PM UTC-4, Dane wrote: > I see... any ideas for a quick method to force all models in > subfolders to run? I have dozens of model files organized in various > subfolders and I'd rather avoid lumping them all together. Thanks for > the help. > > On Jun 20, 3:41 pm, Anthony <[email protected]> wrote: > > 1.96 introduced conditional models -- so model files in subfolders will > only > > run if the name of the subfolder matches the name of the currently > requested > > controller (you can also add an additional level of subfolders to match > > function names within controllers). Prior to 1.96, I don't think using > > subfolders in /models was officially supported. > > > > Anthony > > > > > > > > > > > > > > > > On Monday, June 20, 2011 3:29:24 PM UTC-4, Dane wrote: > > > Hello, I'm migrating an app to a new server (ubuntu 10.10) and > > > upgraded to the most newest web2py stable version as part of this. > > > This has introduced a problem where models in subdirectories of the > > > model folder don't seem to be getting executed. Files placed directly > > > in the model folder run correctly. I have done a 'chown www-data . - > > > R' > > > > > Any ideas?

