Done that, was a pain Massimo as I explained in my first post: "This is not possible for some reason. I could have put them in the "modules" folder, but that involves import gluon.html.gluon.languages e.t.c which is also a headache. Is there any workaround? "
it is a headache, I donot want to track every module or function that I need to create, translate or validate forms in my forms module On May 14, 8:49 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > 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 <nhy...@googlemail.com> 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 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 -~----------~----~----~----~------~----~------~--~---