Hi, I have following trivial problem: A DTML-Mthode calls a PythonScript suchThemen with Argumen themen like this <dtml-in "suchThemen(themen)"> <dtml-var themas> </dtml-in> The PythonScript should return values and I want to display in the dtml-in-loop the result variable themas. Question: How must I programm the PythonScript that suchThemen returns variables of name themas ? Thanks Dirk
something like: return ['a','b','c','d'] try that in a Script(Python). then iterate in a dtml method with dtml-in. ----- Original Message ----- From: "Dirk Datzert" <Dirk.Datzert@rasselstein-hoesch.de> To: <zope-dev@zope.org> Sent: Tuesday, December 04, 2001 4:44 PM Subject: [Zope-dev] PythonScript
Hi,
I have following trivial problem:
A DTML-Mthode calls a PythonScript suchThemen with Argumen themen like this
<dtml-in "suchThemen(themen)"> <dtml-var themas> </dtml-in>
The PythonScript should return values and I want to display in the dtml-in-loop the result variable themas.
Question: How must I programm the PythonScript that suchThemen returns variables of name themas ?
Thanks
Dirk
_______________________________________________ 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 )
if what you are returning is simply a list of items (like a list of strings) you should return that simple list from the python script and inside the dtml-in loop just say:: <dtml-var sequence-item> jens On Tuesday, December 4, 2001, at 11:44 , Dirk Datzert wrote:
Hi,
I have following trivial problem:
A DTML-Mthode calls a PythonScript suchThemen with Argumen themen like this
<dtml-in "suchThemen(themen)"> <dtml-var themas> </dtml-in>
The PythonScript should return values and I want to display in the dtml-in-loop the result variable themas.
Question: How must I programm the PythonScript that suchThemen returns variables of name themas ?
Thanks
Dirk
_______________________________________________ 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 )
participants (3)
-
Dirk Datzert -
Jens Vagelpohl -
Phil Harris