[ZPT] Can macros be employed in Page Templates outside of Zope?

Evan Simpson evan@zope.com
Wed, 29 Aug 2001 15:38:29 -0400


Hamish Lawson wrote:

> Is it possible to employ macros when using PageTemplates outside of 
> Zope?

Yes, but you need to patch a bug first.  This bug, which you've brought 
to my attention, is that the PageTemplate class needs to have base class 
"Base".  So, in PageTemplates/PageTemplate.py:

class PageTemplate(Base):

Thanks,

Evan @ Zope