[Zope-CVS] CVS: Products/ErrorReporter - ExceptionFormatter.py:1.5
Shane Hathaway
shane@cvs.zope.org
Mon, 11 Mar 2002 11:23:30 -0500
Update of /cvs-repository/Products/ErrorReporter
In directory cvs.zope.org:/tmp/cvs-serv28748
Modified Files:
ExceptionFormatter.py
Log Message:
Bugfix: getAppliedPaths() must always return a two-item tuple
=== Products/ErrorReporter/ExceptionFormatter.py 1.4 => 1.5 ===
context = aq_parent(mo)
if aq_base(context) is not aq_base(aq_parent(aq_inner(mo))):
+ # Applied to something other than the container
return self.getObjectPaths(context)
+ else:
+ # Applied to the container
+ return None, None
def formatSupplement(self, supplement, tb):
result = []