<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=986125220-17102003>Hey
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986125220-17102003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986125220-17102003>Grab 100 rows, need
to show them 10 at a time ... basic hierarchy, but w/o 10 database
calls.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986125220-17102003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986125220-17102003>Fundamentally, I
don't know how to access or loop through the object/Iterator in Zope
templates </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=986125220-17102003>within a python
script.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=986125220-17102003>How can I look into
the structure? I'd prefer not to look at the code and catch an
example!!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986125220-17102003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986125220-17102003>Using tal:repeat is
easy ... but I need a little more.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986125220-17102003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986125220-17102003>tx in
advance!</SPAN></FONT></DIV><BR><BR><BR><BR><BR><BR>
<P><FONT face=Verdana color=#000080 size=1>Jason LeMonier</FONT> <BR><FONT
face=Verdana color=#000080 size=1>Software Engineer</FONT> <BR><FONT
face=Verdana color=#000080 size=1>Retail Technologies International</FONT>
<BR><FONT face=Verdana color=#000080 size=1>Office
916.605.7262</FONT> <BR><FONT face=Verdana color=#000080 size=1>Mobile
415.595.0969</FONT> <BR><FONT face=Verdana color=#000080
size=1>Fax 916-914-2132</FONT> <BR><FONT
face=Verdana color=#000080 size=1><A
href="mailto:jlemonier@RetailPro.com">jlemonier@RetailPro.com</A></FONT>
</P><BR>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<H1>[Zope] calling a python script from a dtml method
</H1><B>227709N@knotes.kodak.com </B><A
title="[Zope] calling a python script from a dtml method"
href="mailto:227709N%40knotes.kodak.com">227709N@knotes.kodak.com
</A><BR><I>Tue, 13 Feb 2001 16:10:08 -0500</I>
<P>
<UL>
<LI>Previous message: <A
href="http://mail.zope.org/pipermail/zope/2001-February/125843.html">[Zope]
DocFinder 0.2: asking Zope about its documentation </A>
<LI>Next message: <A
href="http://mail.zope.org/pipermail/zope/2001-February/125851.html">[Zope]
calling a python script from a dtml method </A>
<LI><B>Messages sorted by:</B> <A
href="http://mail.zope.org/pipermail/zope/2001-February/date.html#125850">[
date ]</A> <A
href="http://mail.zope.org/pipermail/zope/2001-February/thread.html#125850">[
thread ]</A> <A
href="http://mail.zope.org/pipermail/zope/2001-February/subject.html#125850">[
subject ]</A> <A
href="http://mail.zope.org/pipermail/zope/2001-February/author.html#125850">[
author ]</A> </LI></UL>
<HR>
<!--beginarticle--><PRE>From: D Blanding
Hello-
I'm new to Zope... (have read the Zope Book) and have used Python.
For my first Zope project, I'm building a web application that stores and
retrieves stuff from the Z-Gadfly RDB. I have successfully written a python
script which calls a zsql method which selects all the records of my table.
(The table is not very big.) The python script then converts each record to
a list (adding a couple of fields and doing some arithmetic, etc.) then
appends all these lists together into one big list. The python script takes
no arguments.
Now I want to display the data in a table. So I plan to call the python
script from a dtml method which will present the data. But I don't know how
to do this. Can anyone give me advice on how to do this?
Also, once I succeed in calling the python script, I'm not sure how I will
parse a list of lists in dtml. I have seen examples using:
<dtml-in>
<dtml-sequence-item>
</dtml-in>
to parse lists but how do I read through a list of lists?
Doug Blanding
<A href="mailto:doug.blanding@kodak.com">doug.blanding@kodak.com</A>
</PRE><!--endarticle-->
<HR>
<P>
<UL><!--threads-->
<LI>Previous message: <A
href="http://mail.zope.org/pipermail/zope/2001-February/125843.html">[Zope]
DocFinder 0.2: asking Zope about its documentation </A>
<LI>Next message: <A
href="http://mail.zope.org/pipermail/zope/2001-February/125851.html">[Zope]
calling a python script from a dtml method </A>
<LI><B>Messages sorted by:</B> <A
href="http://mail.zope.org/pipermail/zope/2001-February/date.html#125850">[
date ]</A> <A
href="http://mail.zope.org/pipermail/zope/2001-February/thread.html#125850">[
thread ]</A> <A
href="http://mail.zope.org/pipermail/zope/2001-February/subject.html#125850">[
subject ]</A> <A
href="http://mail.zope.org/pipermail/zope/2001-February/author.html#125850">[
author ]</A> </LI></UL></DIV></BODY></HTML>