Hi,

I was having trouble with spammers so decided to make it a bit more
difficult for them by using tw.recaptcha. I signed up on recaptcha.net
and got my public and private keys. I installed tw.recaptcha and
dependencies and followed the tutorial on the turbogears 2.0 docs:
http://turbogears.org/2.0/docs/main/ToscaWidgets/Cookbook/ReCaptcha.html

The code is at http://pastebin.com/f224bf14

You'll see that I made some modifications, particularly to how I'm
calling the ReCaptcha validator. I don't use keywords arguments like
in the tutorial. This is because after reading the actual tw.recaptcha
code, it looks as though the __init__ for the ReCaptchaValidator
requires two non-keyword arguments. When I made this change, I was at
least able to view the form (i.e. the paster server didn't crash).

What I would have expected is that, when I enter the two correct words
in the widget and submit it, that I would at least get a flash message
(see code).

Can anyone see what I'm doing wrong here? Thanks for any help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to