Please email me this (again?) so that I can reproduce the problem.

Massimo

On Jun 24, 10:51 pm, Yannick <ytchatch...@gmail.com> wrote:
> Hello Massimo,
> Sorry to bother but was wondering if you figure out a solution for
> this since the multiple form that used to work is now not working on
> this new release...
>
> Thanks,
> Yannick P.
>
> On Jun 21, 3:38 am, Yannick <ytchatch...@gmail.com> wrote:
>
> > Oups actually is a copy and paste... I don't have ":" after the
> > decorators...
>
> > I just sent you a zip file containing the controller and  view...
>
> > Thanks for your help !
> > Yannick P.
>
> > On Jun 21, 12:19 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > I see lots of errors in the first 4 lines:
>
> > > @auth.requires_login() :
> > > def pwdSetting():  return dict(chg_pwd = auth.change_password())
> > > @auth.requires_login() :
> > > from gluon.sqlhtml import form_factory
>
> > > ":" after decorators should not be there
> > > the second decorator is not followed by a "def".
>
> > > Because of these errors (perhaps due to cut and paste) I cannot help
> > > with debugging. Please send the controller and view as a zipped
> > > attachment.
>
> > > Massimo
>
> > > On Jun 20, 10:59 pm, Yannick <ytchatch...@gmail.com> wrote:
>
> > > > Hello thnaks for the note,
> > > > I'm using python 2.5
> > > > Anyway idea ?
> > > > Thanks
>
> > > > On Jun 20, 10:23 pm, "mr.freeze" <nat...@freezable.com> wrote:
>
> > > > > What version of Python are you using?
>
> > > > > On Jun 20, 2:50 pm, Yannick <ytchatch...@gmail.com> wrote:
>
> > > > > > Hello mate,
> > > > > > I'm using the latest version 1.64.3 and some of my application
> > > > > > functionality that used to work before is not working anymore... I 
> > > > > > did
> > > > > > a routine testing on one of the page that contains multiple form 
> > > > > > here
> > > > > > is a sample of how I used to implement it with previous version of
> > > > > > Web2py....
>
> > > > > > @auth.requires_login() :
> > > > > > def pwdSetting():  return dict(chg_pwd = auth.change_password())
>
> > > > > > @auth.requires_login() :
> > > > > > from gluon.sqlhtml import form_factory
> > > > > > settingform = form_factory(
> > > > > >                        SQLField('firstname',label='First Name',
> > > > > >                                       requires=IS_NOT_EMPTY
> > > > > > (),default=default_firstname),
> > > > > >                       ..... )
> > > > > > if form.accepts(request.vars, session, keepvalues=True,
> > > > > > formname='settingform'):
> > > > > > # Some code
> > > > > > return dict(formsetting=settingform)
>
> > > > > > @auth.requires_login()
> > > > > > def index():
> > > > > >     profileSet = profileSetting()
> > > > > >     pwdSetting = pwdSetting()
> > > > > >     return dict( profileSet=profileSet, pwdSet=pwdSetting)
>
> > > > > > ###########
> > > > > > In the View  "Index.html"
> > > > > > ############
> > > > > > Profile Setting:
> > > > > > <form action="" enctype="multipart/form-data" method="post">
> > > > > >      First Name:
> > > > > >                <input name="firstname" type="text"
> > > > > > value="{{=profileSet["formsetting"].latest.firstname}}"/>
> > > > > >   .....
> > > > > >                 <input type="submit" value="Submit" />
>
> > > > > >      {{=profileSet["formsetting"].hidden_fields()}}
> > > > > > </form>
>
> > > > > > Password Setting:
> > > > > > <h1> Password Setting </h1>
>
> > > > > > <form action="" enctype="multipart/form-data" method="post">
> > > > > >    Old Password:
> > > > > >         <input name="old_password" type="password" value="" />
> > > > > >          New Password:
> > > > > >        ...
> > > > > >        ...
> > > > > >         <input type="submit" value="Submit" />
> > > > > >     {{=pwdSet["chg_pwd"].hidden_fields()}}
> > > > > > </form>
>
> > > > > > Now using this code I can't save, the validation is not 
> > > > > > successful...
> > > > > > Did anyone of you had the same problem ?
>
> > > > > > Thanks for your help...
>
> > > > > > Cheers,
> > > > > > Yannick P.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to