I need some 'advanced' form functionality

a- Captcha

i've built a registration engine. i need to toss a captcha on it.
possible candidates:

http://captchas.net/sample/python/
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440588
http://svn.navi.cx/misc/trunk/pycaptcha/
http://mail.wikipedia.org/pipermail/mediawiki-l/2006-February/010078.html
( the generator is python, the rest is not)

or... write one on my own using PIL ( kinda leaning there.  i like PIL
, and i dislike all those methods.  the bulk of them use things that
have already been defeated )

the reason i post this here, is simple - TG would be better with a
captcha widget.  the problem however, is that i wouldn't know how to
implement it for global use (its going to need to store a hash relating
to the captcha somewhere and somehow - and it would be nice if it were
a scalable solution - ie not memory resident - for that to work, we'd
need a TG_captcha class/table , and i'd like input from people on what
they'd like to see in it).  if someone is willing to work w/me on it,
lets talk about what you want in it, and how we can build this FAST.

b - Redirects
I'd like to work out an idiomatic way to handle form processing that
works something like this:

/path/to/form - present form clean
/path/to/form__soft - present form with any url args run through the
validator widgets, but don't submit ( ie:
register/[EMAIL PROTECTED]&month=tuesday will show
[EMAIL PROTECTED] preloaded int the form , but since tuesday is not a
month, it will not appear in the form )
/path/to/form__submit - process form

on sucessful submit...
redirect header to
   /path/to/form__success

on bad submit...
redirect header to
   /path/to/form__error

and also allow for the __(soft|submit|success|error) to be querystring
based as well

its common in mod_perl to have apache send a redirect header on a form
parse, so people don't hit reload and submit the same thing twice. so
i'd like to get that out of the way too.

this is obviously going to be a document and coding guideline, and not
really any new code.   i know i differ in how i work than many people
here , so I'd like to try and create this as friendly to others as
possible.


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