Decorator for use with cgilib

Paul McGuire ptmcg at austin.rr._bogus_.com
Mon Jul 31 19:55:39 EDT 2006


(if anyone still uses cgilib, in the presence of Django, TG, et al.)...

I tried out a simple CGI Python script this week, and was a bit annoyed at
the repetitive <HTML>,<HEAD>,<BODY>, etc. opening and closing tags for each
request handler method.  So I wrote a decorator to handle this junk.  It's
posted on the Python wiki at
http://wiki.python.org/moin/PythonDecoratorLibrary#head-f0d46c66e0a2653daae3f451d32405a283d6759b.

-- Paul





More information about the Python-list mailing list