Within the h.field I have a h.text. Added a default value="" to it and this now works.
Thanks, Gary C On Mar 1, 11:14 am, gazza <[email protected]> wrote: > Hello, > > I have a validator something like the below validator: > > class PassWordValidator(formencode.Schema): > allow_extra_fields = True > filter_extra_fields = True > username = formencode.validators.String(not_empty=True) > password= formencode.validators.String(not_empty=True) > > I pass three arguments back from the form, one is hidden and the > others are username and password. > > When I submit I dont enter anything into the username and password. > An error message is displayed when debugging: > > TypeError: login() takes exactly 2 arguments (1 given) > > I'm assuming the 1 given is the hidden argument id: > > (MultiDict([('username', ''), ('password', ''), ('id', 'D40FEEE2- > C28F-45E0-A445-18371E693B4B'), ('submit', 'Login')]), > > How do I handle null entries? > > Much appreciated, > Gazza -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
