I think it works if the requires is exist like writable = , readable= .. but I want to validate the format of the text in the field. which requires should I use than ? can I do writable=False, readable=False, myformat = validFormat() ?
/F 2013/2/22 Niphlod <[email protected]> > using requires directly in those appended fields doesn't work ? > > > On Friday, February 22, 2013 3:41:04 PM UTC+1, frasse wrote: >> >> Hi >> I have done some custom login form like this in db.py file. >> >> auth = Auth(db, hmac_key=Auth.get_or_create_**key()) >> crud, service, plugins = Crud(db), Service(), PluginManager() >> auth.settings.extra_fields['**auth_user']= [ >> Field('WithdrawalAddress', label = 'Withdrawal Address'), >> Field('Address', label = 'Deposit Address'), >> Field('Nickname', label = 'Nickname') >> ] >> >> >> >> How can I add a custom validation function to extra_fields ? >> >> thanks >> /F >> > -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

