Luca Olivetti wrote at 2005-11-28 12:11 +0100: >I'd like to render a macro from python code. >I saw this recipe http://zopelabs.com/cookbook/1015014229 and instead of >calling the macro_renderer template from dtml code I can simply call it >from python (and it works), but is there a more direct way? (something >like theTemplate.useMacro('macroname',param1='value2',param2='value2')).
Macros were not designed to be executed by Python Scripts. You can, however, view them as programs and let them evaluate by an adequate "TALInterpreter". Not sure, that this is simpler than your current approach... -- Dieter _______________________________________________ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt