Skip to content

Commit

Permalink
allow buildout to pass and avoid import errors with ZTK 2.0dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Mar 2, 2013
1 parent 850fb7b commit 795346b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -89,7 +89,7 @@
'zope.interface',
'zope.lifecycleevent',
'zope.location',
'zope.pagetemplate',
'zope.pagetemplate >= 4.0.2',
'zope.processlifetime',
'zope.proxy',
'zope.ptresource',
Expand Down
6 changes: 3 additions & 3 deletions src/Products/PageTemplates/PageTemplate.py
Expand Up @@ -16,7 +16,7 @@
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
Expand Down Expand Up @@ -106,10 +106,10 @@ def read(self):
return self.pt_render(source=True)
except:
return ('%s\n Macro expansion failed\n %s\n-->\n%s' %
(_error_start, "%s: %s" % sys.exc_info()[:2],
(self._error_start, "%s: %s" % sys.exc_info()[:2],
self._text) )

return ('%s\n %s\n-->\n%s' % (_error_start,
return ('%s\n %s\n-->\n%s' % (self._error_start,
'\n '.join(self._v_errors),
self._text))

Expand Down
3 changes: 3 additions & 0 deletions versions.cfg
Expand Up @@ -37,7 +37,10 @@ zc.buildout = 1.7.1
zc.recipe.egg = 1.3.2

# Zope2 dependencies
mechanize = 0.2.5
repoze.retry = 1.2
repoze.tm2 = 1.0
repoze.who = 2.0
RestrictedPython = 3.6.0
zope.sequencesort = 4.0.0
zope.testbrowser = 3.11.1

0 comments on commit 795346b

Please sign in to comment.