[Zope] Quering ZPT macros?

Johan Carlsson [EasyPublisher] johanc@easypublisher.com
Mon, 31 Mar 2003 11:35:35 +0000


At 13:21 2003-03-31 +0200, Stefan H. Holek said:
>Something like template.macros.keys() should do what you want.
>Stefan

Thanks Stefan,
I found out that macros is a regular mapping object.
So the TALES: python:<path>.macros.has_key(file.meta_type)  will do the 
trick :-)

Johan



-- 
Easy Publisher Developers Team
Johan Carlsson
johanc@easypublisher.com

Mail:
Birkagatan 9
SE-113 36  Stockholm
Sweden

Phone +46-(0)8-32 31 23
Fax +46-(0)8-32 31 83
Mobil +46-(0)70-558 25 24
http://www.easypublisher.com