[Zope] saving data to use in excel later - still a newby

Wilson, Derek dwilson at abrazohealth.com
Wed Nov 19 16:18:47 EST 2003


Just a FYI, you could always create a 'page template' that contains the
following:

<span tal:repeat="item here/getstatistics"><span
tal:replace="item/stat1">stat1 goes here</span>,</span>

Then, just save the 'viewed' page template to a file.

Thanks,
Derek Wilson


-----Original Message-----
From: Dieter Maurer [mailto:dieter at handshake.de] 
Sent: Wednesday, November 19, 2003 12:23 PM
To: Kate Legere
Cc: Zope
Subject: Re: [Zope] saving data to use in excel later - still a newby


Kate Legere wrote at 2003-11-19 10:56 -0500:
 > I've designed an online form to track statistics (we were writing
them down  > previously and then someone would have to go through them)
> 
 > Id like the form (on submit) to save the data (probably through
calling a  > python script) collected in a format (text file) that I can
then export to  > an excel file. Can someone point me to an example. My
problem is, i guess in  > the python script that updates and saves the
new data.

You will need an External Method (--> "Zope Book").

There is a "csv.py" module around for Python (from 2.3 in the Python
core library; up to then separate). It allows you to read and write CSV.

Maybe, you should look at the Python tutorial (--> "www.python.org").

-- 
Dieter

_______________________________________________
Zope maillist  -  Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list