Re: [Zope] METALError:incompatible version error when try to do use-macro and python script
Andrew Milton wrote: +---[ 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] | | | | | [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. Thanks a lot for your help. My return now looks like: return context.subtab.macros['tools_sub'] GS ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] METALError:incompatible version error when try to do use-macro and python script
+---[ 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] | | | | | [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 [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )