[Zope] FW: Writing to a file
Jens Vagelpohl
jens@zope.com
Fri, 30 Nov 2001 13:35:24 -0500
this, for security reasons, will never work inside DTML or from simple
python scripts. you'll have to use an External Method, which means you
must use python.
jens
On Friday, November 30, 2001, at 01:09 , Beaudette, Sheree wrote:
> 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!!
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )