Looking for a nice CGI-related string representation module

Ian Bicking ianb at colorstudy.com
Sun Feb 2 22:03:56 EST 2003


On Sun, 2003-02-02 at 19:15, Mike McGavin wrote:
> Examples of different representations might include what the user typed 
> in verses the escaped version for a SQL string, verses a differently 
> escaped version for output as part of an HTML page, verses an integer 
> representation if possible, and so on. Being able to naturally add 
> representation modes would be a bonus. Maybe the user types in a 
> wiki-like representation, such as using *'s for bulleted lists, and the 
> module can translate it to an HTML format or SQL format on the fly, and 
> so on.

These are spread out all over the place, like cgi.escape, various
quoting done via DB modules, urllib, and others.  For markup you'd might
use reST (docutils.sf.net).  There's some non-intuitive codecs as well.

But it does take some digging up to find these.  It could be useful to
consolidate them into a single interface.

-- 
Ian Bicking           Colorstudy Web Development
ianb at colorstudy.com   http://www.colorstudy.com
PGP: gpg --keyserver pgp.mit.edu --recv-keys 0x9B9E28B7
4869 N Talman Ave, Chicago, IL 60625 / (773) 275-7241






More information about the Python-list mailing list