29 Aug
2007
29 Aug
'07
6:58 p.m.
Is there a way to call a specific macro in a ZPT from a python script? So far, the only way I've found to do this is by calling the macro template from another template, then calling the wrapper, like: wrapper: <metal:wrapper use-macro="python:path('here/my_macros/macros/'+options['macro'])" /> script: context.my_wrapper(macro='my_macro',foo='whatever') Is there a way to do this without wrapping the macro template in another template call? -- View this message in context: http://www.nabble.com/Calling-a-ZPT-macro%2C-with-parameters%2C-from-a-pytho... Sent from the Zope - General mailing list archive at Nabble.com.