[Zope] FW: Writing to a file

Beaudette, Sheree SBeaudette@banknorth.com
Fri, 30 Nov 2001 13:09:40 -0500


I'm going to resubmit my question below since I haven't yet received any
answer.  Is there anyone who can at least lead me in the right direction?
I'm sure people have done this before.  Still new to Zope and especially
Python.

Thanks!

> -----Original Message-----
> From:	Beaudette, Sheree 
> Sent:	Thursday, November 29, 2001 12:12 PM
> To:	'zope@zope.org'
> Subject:	Writing to a file
> 
> The logic here is simple but I'm not sure about the code.  Also not sure
> how or if I need to use Python (which I'm just learning).
> 
> I'm in a zope dtml method called cldmSearchForm
> 
> what I need to do from this method is:
> 
> start a loop that loops through the SQL method clsqBanks until there are
> no more banks
> open a file which will be named something differently for each bank (i.e.
> bkbankidrom.txt)
> write a header of some sort
> start another loop which loops through the SQL method clsqOfficers until
> there are no more officers
> for each officer write the bankno, officer no, etc, then new line
> end officer loop
> close file
> end bank loop
> 
> Hope someone can help!!  Thanks in advance!!