dynamically creating html code with python...
malaclypse2 at gmail.com
Mon Aug 11 18:46:13 CEST 2008
On Mon, Aug 11, 2008 at 12:26 PM, <anartz at anartz.cjb.net> wrote:
> I have tried calling a script containing the code below from a web browser and it did not get the text.
You quoted my post that answered this question, but did not implement
either of the two solutions I suggested. I continue to suggest that
you either: f.seek(0) before you f.read(), or that you replace
f.read() with f.getvalue().
Also, you may want to read the docs on
StringIO - http://docs.python.org/lib/module-StringIO.html
File objects - http://docs.python.org/lib/bltin-file-objects.html
More information about the Python-list