Hello, I'm developing a product for ZOPE. Because changes in the python and dtml files are not detected I need to restart the ZOPE server all the time. Is there a way get around this? How can I list a dictionary (e.g the REQUEST) with dtml. In python I would do the following: for i in REQUEST.keys(): print "%s=%s"%(i,REQUEST[i]) And with DTML? Here is the peace of dtml I came up with. But it doesn't work! I look in documenation but ... What is wrong? <dtml-in "REQUEST.keys()"> <b><dtml-var sequence-item>=<dtml-var "REQUEST[sequence-item]" ></b><br> </dtml-in> Thanks Alfons
Why not try <dtml-var REQUEST> Go on try it, you may be nicely surprised ;) Phil phil.harris@zope.co.uk ----- Original Message ----- From: <administrator@consotec.de> To: <zope@zope.org> Sent: Saturday, January 08, 2000 3:41 PM Subject: [Zope] Debugging and DTML Hello, I'm developing a product for ZOPE. Because changes in the python and dtml files are not detected I need to restart the ZOPE server all the time. Is there a way get around this? How can I list a dictionary (e.g the REQUEST) with dtml. In python I would do the following: for i in REQUEST.keys(): print "%s=%s"%(i,REQUEST[i]) And with DTML? Here is the peace of dtml I came up with. But it doesn't work! I look in documenation but ... What is wrong? <dtml-in "REQUEST.keys()"> <b><dtml-var sequence-item>=<dtml-var "REQUEST[sequence-item]" ></b><br> </dtml-in> Thanks Alfons
Try.. <dtml-var standard_html_header> <h2><dtml-var title_or_id> <dtml-var document_title></h2> <p> <dtml-in "REQUEST.keys()"> <dtml-var sequence-item><br> </dtml-in> </p> <dtml-var standard_html_footer> -steve
Oops! try: <dtml-var standard_html_header> <h2><dtml-var title_or_id> <dtml-var document_title></h2> <p> <dtml-in "REQUEST.keys()"> <dtml-var sequence-item> -> <dtml-var "REQUEST[_['sequence-item']]"><br> </dtml-in> </p> <dtml-var standard_html_footer> -steve
participants (3)
-
administrator@consotec.de -
Phil Harris -
Steve Spicklemire