> > Also, you keep mentioning PHP's "include". I would answer with Python's >> "import". >> >> > Yes, I was thinking the same way. This might be weird at first and maybe > obviously impossible and thus show my complete ignorance, but is it > possible to move an entire application such as the welcome app into a > module. So that an "empty" app could import that module and in that way be > a wrapper over the welcome app? >
Not exactly, because web2py controller files are not Python modules -- they are executed by the web2py framework in a prepared environment. I suppose you could put controller functions in modules and have the wrapper application import and call those functions based on the incoming request, but the resulting application structure/code would not look quite like a typical web2py application. 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 the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.