Clayton, The resulting records are wrapped in a "Recordset" object (it's not called that, it's called something else I think, but that's what it is), so if you do something like this: def emMyExternalMethod(team_id): score=[] member=[] recordset=self.sqlSelectSomething(team_id=team_id) for record in recordset: i = i + 1 scores[i]=record.score return (scores) Where "score", and "team_id" are columns in the relational database you're looking at. This is a fictional database and application, just an example. You can then return whatever you want (list, dictionary, string) to the calling DTML method. In this case we return a list (the scores list), which can be looped through via dtml-in in the calling method. Clayton Miller wrote:
Yes, I agree. I have already read that. It did explain alot, but it did not explain how to return results from python that are then processed using a dtml-in statement. Thank you for taking the time to answer my many questions, Clayton. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
-- Chris McDonough Digital Creations, Inc. Zope - http://www.zope.org