"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Products/PageTemplates/PageTemplate.py" between
Zope-5.1.1.tar.gz and Zope-5.1.2.tar.gz

About: Zope Z Object Publishing Environment - web application platform used for building content management systems, intranets, portals, and custom applications.

PageTemplate.py  (Zope-5.1.1):PageTemplate.py  (Zope-5.1.2)
skipping to change at line 63 skipping to change at line 63
def macros(self): def macros(self):
return self.pt_macros() return self.pt_macros()
# sub classes may override this to do additional stuff for macro access # sub classes may override this to do additional stuff for macro access
def pt_macros(self): def pt_macros(self):
self._cook_check() self._cook_check()
if self._v_errors: if self._v_errors:
__traceback_supplement__ = ( __traceback_supplement__ = (
PageTemplateTracebackSupplement, self, {}) PageTemplateTracebackSupplement, self, {})
raise PTRuntimeError( raise PTRuntimeError(
'Page Template {} has errors: {}'.format( f'Page Template {self.id} has errors: {self._v_errors}')
self.id, self._v_errors
))
return self._v_macros return self._v_macros
# these methods are reimplemented or duplicated here because of # these methods are reimplemented or duplicated here because of
# different call signatures in the Zope 2 world # different call signatures in the Zope 2 world
def pt_render(self, source=False, extra_context={}): def pt_render(self, source=False, extra_context={}):
c = self.pt_getContext() c = self.pt_getContext()
c.update(extra_context) c.update(extra_context)
debug = getattr(c['request'], 'debug', None) debug = getattr(c['request'], 'debug', None)
if debug is not None: if debug is not None:
 End of changes. 1 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)