[Zope] calling macros

Geir Bækholt lists at elvix.com
Tue Apr 20 08:20:54 EDT 2004


Marius,
Tuesday, April 20, 2004, 2:03:30 PM, you wrote:

> Yes I understand that. However the macro that I am calling uses the
> 'here' object, which references the object defined outside the loop, not
> the one that is referenced by 'obj'. What I want to do is to call the
> macro so that the 'here' reference is now set to the same object as 'obj'

I would simply use "obj", but if you are desperate to make them the
same (i cannot see for what reason, i must admit.. ) add a

<tal:scary define="here obj">
wrapper around (or inside) the macro expansion

No guarantees attached ;) good luck


-- 
__________________________________________________________________

 Geir Bækholt    ·   Interaction Engineer   ·    Plone Solutions

 Development · Training · Support · http://www.plonesolutions.com
__________________________________________________________________




More information about the Zope mailing list