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
-~----------~----~----~----~------~----~------~--~---

Reply via email to