[Zope] zope and python script
mbagepll@memphis.edu
mbagepll@memphis.edu
Wed, 27 Feb 2002 11:51:00 -0600
This is a multi-part message in MIME format.
----42e5189c2276677e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Hi all,
I (i am a newbie) have written a simple python script that queries a
MS-SQL database and captues the result set into a list. I have called
this sccipt in a dtml document and want to iterate through the list
elements. When i do this-
<dtml-in expr="Python_script()">
<li>
<dtml-var text>
</li>
</dtml-in>
where, "text" is the list that is returned by the python scirpt. It
says -
Error Type: KeyError
Error Value: text
My question is, how do i iterate through the list and obtain the values
from the list.
Thanking you in advance
Madhavi Bagepalli
----42e5189c2276677e
Content-Type: text/x-vcard; name="mbagepll.vcf"; charset=us-ascii
Content-Disposition: attachment; filename="mbagepll.vcf
Content-Description: Card for <mbagepll@memphis.edu>
Content-Transfer-Encoding: 7bit
begin:vcard
n:Bagepalli;Madhavi
tel;home:901-452-8078
tel;work:901-678-1659
org:The University of Memphis;Academic Systems
adr:;;3570 Mynders, Apt # 12;Memphis;TN ;38111;USA
version:2.1
email;internet:mbagepll@memphis.edu
title:Graduate Assistant
end:vcard
----42e5189c2276677e--