appypod-rattail/gen/plone25/skin/callMacro.pt
2011-09-18 15:00:05 +02:00

13 lines
621 B
XML

<tal:comment replace="nothing">
This page allows to call any macro from Python code, for example.
</tal:comment>
<tal:call tal:define="macroName options/macroName;
page python: options['page'];
contextObj python: options['contextObj'];
tool contextObj/getTool;
layoutType python:'view';
phaseInfo python: contextObj.getAppyPhases(currentOnly=True, layoutType='view');
phase phaseInfo/name;">
<metal:callMacro use-macro="python: page.macros[macroName]"/>
</tal:call>