[Zope] Converting dtml-in to a pythonscript

Steve Drees drees@the-bridge.net
Wed, 30 May 2001 21:05:59 -0500



somedtmlmethod contains:
<dtml-with "PARENTS[0].somefolder">
  <dtml-var anotherdtmlmethod>
</dtml-with>



This works in dtml:
<dtml-in somesequence>
  <dtml-var "somedtmlmethod(_.None,_,id=idfromsequence)">
</dtml-in>


How do I do this in a python script?


I've tried:
for item in context.somesequence:
  print context.somedtmlmethod(_.None,_,news_item_id=story.news_item_id)
return printed


--Steve
desperately seeking zen