Commit ee53f2c4 authored by Martin Häcker's avatar Martin Häcker

Trying to fix bug https://bugs.launchpad.net/zope2/+bug/1387138. zope is...

Trying to fix bug https://bugs.launchpad.net/zope2/+bug/1387138. zope is trying to import a symbol which is not at the expected place anymore.
parent 08b0e954
......@@ -16,11 +16,20 @@
import sys
import ExtensionClass
import zope.pagetemplate.pagetemplate
from zope.pagetemplate.pagetemplate import _error_start, PTRuntimeError
from zope.pagetemplate.pagetemplate import PTRuntimeError
from zope.pagetemplate.pagetemplate import PageTemplateTracebackSupplement
from zope.tales.expressions import SimpleModuleImporter
from Products.PageTemplates.Expressions import getEngine
# Newer versions of zope.pagetemplate have this symbol as an instance method
try:
from zope.pagetemplate.pagetemplate import _error_start
except ImportError:
if hasattr(zope.pagetemplate.pagetemplate.PageTemplate, '_error_start'):
_error_start = zope.pagetemplate.pagetemplate.PageTemplate._error_start
else:
_error_start = '<!-- Page Template Diagnostics'
class PageTemplate(ExtensionClass.Base,
zope.pagetemplate.pagetemplate.PageTemplate):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment