"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ZPublisher/BeforeTraverse.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.

BeforeTraverse.py  (Zope-5.1.1):BeforeTraverse.py  (Zope-5.1.2)
skipping to change at line 107 skipping to change at line 107
if self._defined_in_class: if self._defined_in_class:
getattr(container.__class__, self._hookname)(container, getattr(container.__class__, self._hookname)(container,
container, request) container, request)
prior = self._prior prior = self._prior
if prior is not None: if prior is not None:
prior(container, request) prior(container, request)
for cob in self._list: for cob in self._list:
try: try:
cob(container, request) cob(container, request)
except TypeError: except TypeError:
LOG.error('{!r} call {!r} failed.'.format( LOG.error(f'{self._hookname!r} call {cob!r} failed.',
self._hookname, cob), exc_info=True) exc_info=True)
def add(self, cob): def add(self, cob):
self._list.append(cob) self._list.append(cob)
class NameCaller: class NameCaller:
"""Class used to proxy sibling objects by name. """Class used to proxy sibling objects by name.
When called with a container and request object, it gets the named When called with a container and request object, it gets the named
attribute from the container and calls it. If the name is not attribute from the container and calls it. If the name is not
found, it fails silently. found, it fails silently.
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

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