On 4/27/06, jvanasco <[EMAIL PROTECTED]> wrote:
> to answer myself...
>
>     @expose()
>     def captcha(self,**data):
>         captchaInstance = TG_Captcha(captcha_seed='email_address')
>         cherrypy.response.headerMap['Content-Type'] = 'image/jpeg'
>         return captchaInstance.generate_image().render_img()

Very cool!

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