[reportlab-users] pythonpoint with stringIO

Robin Becker reportlab-users@reportlab.com
Thu, 2 Oct 2003 19:50:08 +0100


In article <BAY1-F3DYge2Qw4hVJb00007bda@hotmail.com>, vicky lupien
<lupien_v_31@hotmail.com> writes
>I want to use pythonpoint from an other python script without having an xml 
>file in entry (just with a stringIO).  I use prettyprint for making my 
>stringIO.
>
>Thanks
>
>Vicky
Hi Vicky, I think you can import the process function from
pythonpoint.py and then call one of those directly.

It seems as though process checks to see if the datafile argument has a
read method and uses datafile directly if it has. At present the
limitation seems to be that pythonpoint always writes to a file.
-- 
Robin Becker