You can now do: response.models_to_run = ['list', 'of', 'regexes']
You can set that (and change it) in any model file. The regexes are relative to the /models folder, so any model file with a relative file path that matches one of the regexes will be executed. By default, the response.models_to_run regexes are defined to enable the standard conditional models (i.e., execute models in subfolders whose names match the current controller and function). However, you can change it to whatever you like. To run all models in all subfolders, somewhere in the first model file, just do: response.models_to_run = ['.*'] It is checked after each model is executed, so it can be changed dynamically from one model file to another. Anthony On Thursday, November 22, 2012 9:04:24 AM UTC-5, Joel Samuelsson wrote: > > Hi, > > I would like to have a subfolder structure in my models folder. I am aware > that subfolders are only executed upon request from the user. I saw this > thread however: > > https://groups.google.com/forum/?fromgroups=#!searchin/web2py/models$20subfolders/web2py/o8Ya4ZqNhLk/eoeLK7_45Z4J > But after that, I haven't been able to find any mention if the fix > (mentioned in last message in above thread) was ever implemented. > Can I somehow get subfolders in my models catalogue to be executed without > moding compileapp myself? > > Best regards, > Joel > --