20 Apr
2004
20 Apr
'04
6:54 a.m.
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.