[mod_python] Re: PyChart into web site error

Graham Dumpleton grahamd at dscpl.com.au
Wed Oct 19 19:09:02 EDT 2005

G.M.Dall'Olio wrote ..
>         ar.draw(can)
>         return str(can_obj.read())                       # Try to read

Realised what problem probably is. Change last line to read:

  return can_obj.getvalue()

See StringIO object for details of what getvalue() does. The read()
function doesn't do what you think it does.

Gotta run.


More information about the Mod_python mailing list