[ZPT] bug?

Guido van Rossum guido@digicool.com
Wed, 23 May 2001 09:35:48 -0400


> I innocently created a new Page Template and clicked Add & Edit
> and I got this:
> 
> The object has that little Expand thing ticked and in the aquisition path
> there are no Page Templates that define a macro.
> 
> <!-- Page Template Diagnostics
>  Macro expansion failed
>  exceptions.AttributeError: getDefault
>  ('C:\\PROGRA~1\\zope\\lib\\python\\TAL\\TALInterpreter.py', 160,
> '__init__', 'self.Default = engine.getDefault()')
> 
> ('C:\\PROGRA~1\\zope\\lib\\python\\Products\\PageTemplates\\PageTemplate.py'
> , 155, 'pt_render', 'tal=not source, strictinsert=0)()')
> 
> ('C:\\PROGRA~1\\zope\\lib\\python\\Products\\PageTemplates\\PageTemplate.py'
> , 186, 'read', 'return self.pt_render(source=1)')
> -->

Sounds like your versions of TAL and Products/PageTemplates don't
match.  Since in your previous message you suggested that you were
playing with the CVS version, I'd suggest: don't do that; use the
official ZPT 1.3 release from zope.org instead.

--Guido van Rossum (home page: http://www.python.org/~guido/)