[Twisted-web] pgasync (was: /freeform_post!!random causes exceptions)

Andrea Arcangeli andrea at cpushare.com
Fri Feb 18 18:23:22 MST 2005

On Fri, Feb 18, 2005 at 12:02:14PM -0600, J Turner wrote:
> If I did it the way you suggest, however, and do something like
> STRING(str(unknown_thing)) so that it was sure to be escaped properly, 
> that seems like it would be a useful thing.  

Yes, the idea is to convert ot str and then to excape it with STRING.

I could duplicate the hash and purify it myself, and it'd still work
with pgasync too, but I'd need to write more code for it that would be
unnecessary with the above. With the abvoe I could pass down as well an
url and have it converted to string automatically by pgasync.

The main cons is decreased strictness that might actually hide bugs if
somebody pass down a weird type. So if you don't want to do that, I can
as well try to purfy the stuff myself.

More information about the Twisted-web mailing list