[Zope] calling macros

Marius Gleeson zope at subscribe.audumla.net
Tue Apr 20 02:54:36 EDT 2004


Hi there,

I am calling a macro that reference the 'here' variable within python
scripts. However the I am calling the macro from within a tal:repeat
block. So the here object within the macro is not the object that I want
to be working with. Can anyone tell me how I should be doing this so that
macro is referencing the correct object.


<metal:block tal:repeat="obj folderContents">
<dd>
<div tal:condition="python: obj.portal_type == 'News Item'">
  <metal:use use-macro="here/newsitem_view/macros/main"/>
</div>
</dd>
</metal:block>

Thanks.



More information about the Zope mailing list