RE: [Zope] dtml-in over the output from my method

2000-11-06 Thread Max M
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Hicks I am trying to create a zope product in python but have got stuck with using the dtml-in tag to iterate over a method (or is it a function? I get a little mixed up) of my class. Here is the method, def list_messages(self):

Re: [Zope] dtml-in over the output from my method

2000-11-06 Thread Andy McKay
The problem is the first time your for loop runs it will return to the dtml and will not run anymore. Rather build up a list, or list of objects inside your method and then return. Dtml-in needs to see a list. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Tim

Re: [Zope] dtml-in over the output from my method

2000-11-06 Thread Tim Hicks
- Original Message - From: Max M [EMAIL PROTECTED] To: Tim Hicks [EMAIL PROTECTED]; Zope@Zope. Org [EMAIL PROTECTED] Sent: Monday, November 06, 2000 9:48 PM Subject: RE: [Zope] dtml-in over the output from my method snip def list_messages(self): class msg: def