nvm I just found the fix to my issue *cheers

append

self.options = options

to the init function right after line 614 in gluon/tools.py

anyway *cheers




On Fri, Jan 14, 2011 at 11:06 AM, Andrew Evans <[email protected]> wrote:

> hello I have just updated my web2py to the latest version. I have not
> changed any code in my website referencing my form
>
> def contact():
>     use_recaptcha = True
>     recaptcha_public = "6LeER8ASAAAAAI_koQRPAr3YBuk9v76YOOrEANx-"
>     recaptcha_private = "6LeER8ASAAAAAGc0VonegXpSzo1R1-THzKqyerfb"
>     captcha = Recaptcha(request, recaptcha_public,recaptcha_private)
>     form=SQLFORM(db.message,
> fields=['your_name','your_email','your_message'])
>     if use_recaptcha:
>         form[0].insert(-1, TR('', captcha, ''))
>     if form.accepts(request.vars,session):
>        subject='message from [Nami Yama] Web site '+form.vars.your_name
>        email_user(sender=form.vars.your_email,\
>                   message=form.vars.your_message,\
>                   subject=subject)
>        response.flash='Success! Your email has been sent.'
>     elif form.errors:
>        response.flash='Oops! Please check the form and try again'
>     return dict(top_message=TOP_MESSAGE,form=form)
>
> there seems to be an error causing my contact page to not be displayed I
> assume its a bug in web2py because no code has been changed ;)
>
> Any idea whats causing this  error if its not a bug :-)
>
> cheers
>
> AttributeError: 'Recaptcha' object has no attribute 'options'
>
>
>

Reply via email to