+-------[ 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
[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 )

Reply via email to