> While I know that to be true in the general sense, from what I've
> looked at Django and other frameworks it seems that the web frameworks
> push the coder to use templates, not letting him near the HTML.
>
> For instance, I was looking for a class / framework that provided a
> proven method of decoding cookies (setting them is no problem),
> decoding POST and GET variables, escaping variables for safe entry
> into MySQL, and other things. Django and the other frameworks seem to
> force the user to use templates. I just want the functions, and to
> print the HTML as stdout to the  browser making the request. I had to
> settle on PHP to do this, which admittedly is what PHP was invented to
> do. However, for obvious reasons, I would have prefered to code in
> Python. In fact, I still would.
>

I should probably expand on this:

How can I get an array with all the GET variables in Python?
How can I get an array with all the POST variables in Python?
How can I get an array with all the COOKIE variables in Python?
How can I get the request URI path (everything after
http://[www.?]example.com/)?

That's all I want: no templates and nothing between me and the HTML.
The HTTP headers I can output to stdout myself as well.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to