[Zope] METALError:incompatible version error when try to do
use-macro and python script
Andrew Milton
akm at theinternet.com.au
Tue Apr 12 19:24:28 EDT 2005
+-------[ Gautam Saha ]----------------------
| Hi:
|
| I am getting a METALError when I try to do use-macro in ZPT.
|
| Here is my code in main_template.pt
| .....
| ......
[snip]
| <div metal:use-macro="python:here.getSubTab()">
| </div>
| ....
| ....
|
[snip]
| I am basically returning 'here/subtab/macros/tools_sub' from the
| getSubTab() py
| script. ( my script has one line for testing - return
| 'here/subtab/macros/tools_sub'
|
| Any help to resolve this is greatly appreciated.
You actually have to return a macro, not a string representing the path to the
macro. Your script will have to return here.subtab.macros['tools_sub']
I think that's the right format.
--
Andrew Milton
akm at theinternet.com.au
More information about the Zope
mailing list