put them in
applications/yourapp/modules
and
exec('import application.%s.modules.forms.reg_form as reg_form' %
request.application)
On May 14, 11:47 am, voltron <[email protected]> wrote:
> I have several forms and accompanying functions, I would like to be
> able to import them from the controller folder as in:
>
> /controlllers
> /forms/__init__
> /forms/ reg_form.py
>
> mycontroller.py
>
> #in mycontroller.py
>
> import forms.reg_form ### ERROR
>
> This is not possible for some reason. I could have put them in the
> "modules" folder, but that invilves import gluon.html.gluon.languages
> e.t.c which is also a headache. Is there any workaround?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---