jvanasco wrote:
> ok, i'm 2/3 done w/a captcha class.  i'll post it tomorrow, but i don't
> know if i can get it widgetized.  maybe somone can help with that.
>
> the general idea is:
>
> it requires PIL and freetype. Its modeled after
> http://svn.navi.cx/misc/trunk/pycaptcha/  , but trying to push it
> closer to the google captcha system (which i hear is pretty strong )
> i've been using pwntcha as a guide ( http://sam.zoy.org/pwntcha/ )
>
> instead of storing anything in the server, it generates an md5 of the
> captcha text + a site secret , and provides that to be displayed on the
> page as a hidden element.  validate the captcha and the md5 will match.
>  hooray.

Very nice, maybe when you're done I can look at it to see what an
eventual widget could look like, some times ago I brainstormed an
eventual captcha widget.

IMHO it should be pretty straightforward to use in this way, you have a
captcha form field that visually provides an entry (to enter the
captcha text) and the image, on the code side this widget has a custom
FE validator that validates (using your system) the entered text and
takes care of everything, so in the end to use your captcha one should
be able to just do something like this.

class MyFields(WidgetsList):
    name = TextField()
    password = TextField()
    captcha = CaptchaWidget()

not sure anyway.

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to