[ZPT] Re: Using Script to Select Macro

Doug Tillman Doug.Tillman at grainger.com
Thu Aug 5 10:00:41 EDT 2004


Returning the actual macro rather than the string path to the macro
worked!!   Wished I'd thought of it myself  ;-).  Thanks so much for the
help.

Regards,

Doug

>>> Tonico Strasser <contact_tonico at yahoo.de> 8/5/2004 6:23:58 AM >>>
Doug Tillman wrote:

> if (linktype=="User"):
>     return "here/navlinks/macros/userlinks"
> elif (linktype=="Silo"):
>     return "here/navlinks/macros/silolinks"
> elif (linktype=="BuildType"):
>     return "here/navlinks/macros/buildtypelinks"

Would this work for you?

if (linktype=='User'):
     return context.navlinks.macros['userlinks']

Tonico

_______________________________________________
ZPT mailing list
ZPT at zope.org 
http://mail.zope.org/mailman/listinfo/zpt


More information about the ZPT mailing list