oops, thanks

On Jun 29, 6:34 pm, "mr.freeze" <[email protected]> wrote:
> Perfect.  BTW, I think you need to change line 172 of tools.py to:
> self.errors['captcha'] = self.error_message
> instead of:
> self.errors['captcha'] = 'invalid!'
>
> It returns 'invalid!' even if you set error_message
>
> On Jun 28, 11:18 pm, mdipierro <[email protected]> wrote:
>
> > def contact():
> >      form = SQLFORM.factory(
> >         SQLField
> > ('auth_user',db.auth_user,default=auth.user.id,writable=False,readable=False),
> >         SQLField('subject','string',length=128,requires=IS_NOT_EMPTY
> > ()),
> >         SQLField('message','text',requires=IS_NOT_EMPTY()))
> >      form[0].insert(-1, TR('',  Recaptcha(request,"...","..."), ''))
> >      if form.accepts(request.vars,session):
> >           etc etc etc
> >      return dict(form=form)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to