You are right

form.custom.widget.password_two is undefined. You must use

<input name="password_two" type="password" />

On May 3, 7:36 pm, waTR <r...@devshell.org> wrote:
> Strange behaviour in view:
>
> I can't seem to use password_two using custom form. It doesn't show up
> as a text-box. It simply shows up as the word "None".
>
> On May 3, 5:20 pm, waTR <r...@devshell.org> wrote:
>
> > Correction:
> > Instead of register["_class"] = "bla", do:
> > register.element(_name='fieldNAME')['_class'] = "custom_css_classes"
>
> > On May 3, 5:18 pm, waTR <r...@devshell.org> wrote:
>
> > > The way to do it is to do the following in the controller:
>
> > > register = auth.register()
> > > login = auth.login()
>
> > > Then, you can use:
> > > register["_class"] = "custome_css_classes"
>
> > > and same for login. Then I simply pass a "return
> > > dict(register=register, login=login)", and I have two forms available
> > > for me to use "{{=register.custom.widget.bla}}" with in view.
>
> > > On May 3, 5:07 pm, waTR <r...@devshell.org> wrote:
>
> > > > Is there any way to use form.custom.widget with AUTH.register() and
> > > > AUTH.login()  ?
>
> > > > I have a design I am trying to plug my code into, and wanted to try
> > > > not re-writing the login/register stuff this time.

Reply via email to