On Fri, May 15, 2009 at 4:23 AM, Voltron <[email protected]> wrote: > Hi Massimo! > > Yes, the problem still persists, it is not possible to import a > package or module from a subdirectory in the controller folder, even > when I placed an "__init__.py file in almost every folder
I don't understand why you can't import them. I just modified welcome app (from trunk) and it works very well for me, like I stated before: ----- cut here ----- So, create __init__.py in applications/yourapp/controllers AND in applications/yourapp/controllers/forms (you have __init__, not __init__.py). So you can do: import applications.yourapp.controllers.forms.reg_form as reg_form ----- cut here ----- -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

