12 Apr
2005
12 Apr
'05
11:24 p.m.
+-------[ 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@theinternet.com.au