Is this what you mean? Models
db.py db_news.py db_wiki.py Controllers /default.py /news.py /wiki.py On Nov 9, 1:22 pm, eggy_ <markflorisso...@gmail.com> wrote: > I don't "need" it as such, but I want to group certain related parts > of the web application that don't necessarily need to be in the same > controller. This would be akin to a python package structure. Of > course, in python code, any program written as a set of packages and > modules can be written as a sole set of modules or even just one > module, but that doesn't mean that would be a good, logical, approach. > The same logic could be applied to web2py controllers. > > On Nov 9, 7:10 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > This would require a change in the URL convention and could make > > dispatching slower. > > Why do you need this? I am not saying no but I need to be convinced. > > > On Nov 9, 12:02 pm, eggy_ <markflorisso...@gmail.com> wrote: > > > > I guess the term 'package' is not really applicable. What I meant was > > > that I want to have the ability to use subdirectories as part of the > > > controller. So that the controller part basically becomes > > > 'somedirectory/somecontroller'. You can currently only have a > > > 'somecontroller'. > > > > On Nov 9, 5:03 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > I do not understand what you mean by "packages". You can use python > > > > "import whatevermodule.py" > > > > > On Nov 9, 9:56 am, Timbo <tfarr...@swgen.com> wrote: > > > > > > Because web2py exec()s controllers rather than importing them, > > > > > packages are not currently an option. Whats you're reason for needing > > > > > packages? Maybe we can help you find a better solution. > > > > > > On Nov 9, 4:18 am, eggy_ <markflorisso...@gmail.com> wrote: > > > > > > > Hello, > > > > > > > I want to divide my controller logic up into packages, where the > > > > > > controller part will be 'package/subpackage/module' instead of just > > > > > > 'module'. Currently, I can only use a module as the controller, and > > > > > > the corresponding view will be a directory with the module's name, > > > > > > containing a bunch of views that correspond with the request > > > > > > functions > > > > > > in the controller. In this case I want the view files corresponding > > > > > > with the request functions in 'module' to be located in > > > > > > 'applications/ > > > > > > myapp/views/package/subpackage/module/'. > > > > > > > regards, > > > > > > > Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---