[zope2-tracker] [Bug 1004588] Re: A valid PageTemplate fails rendering with AttributeError in zope.tal.talgenerator

BenJ 1004588 at bugs.launchpad.net
Sat Dec 13 02:03:34 CET 2014


This is an easy fix, but cannot be mainlined due to some incredible
disparities between zope.tal, zope.tales and zope.pagetemplates for Zope
2.x installs.

In plain english, your ZopeContext has a "_engine" property that CAN be
fed into AltTALGenerator.

So replace "self.engine" with "self.engine._engine" for
insertHTMLStructure, insertXMLStructure.

Here is a patch that works on my Zope 2.11 installation:
https://gist.github.com/benjolitz/6070af860e21a8a50771

It is meant to be applied within the /opt/Zope-2.11/ directory, but
judicious use of patch -p# can help you.


I've investigated getting this into mainline, but I'm not interested in squaring the round circle of Zope packages.

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1004588

Title:
  A valid PageTemplate fails rendering with AttributeError in
  zope.tal.talgenerator

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1004588/+subscriptions


More information about the zope2-tracker mailing list