[Zope-Checkins] SVN: Zope/branches/2.12/src/Products/Five/browser/absoluteurl.py Fix _getContextName; does anyone test this stuff?
Martijn Pieters
mj at zopatista.com
Fri Feb 26 11:46:19 EST 2010
Log message for revision 109473:
Fix _getContextName; does anyone test this stuff?
Changed:
U Zope/branches/2.12/src/Products/Five/browser/absoluteurl.py
-=-
Modified: Zope/branches/2.12/src/Products/Five/browser/absoluteurl.py
===================================================================
--- Zope/branches/2.12/src/Products/Five/browser/absoluteurl.py 2010-02-26 15:23:23 UTC (rev 109472)
+++ Zope/branches/2.12/src/Products/Five/browser/absoluteurl.py 2010-02-26 16:46:18 UTC (rev 109473)
@@ -62,7 +62,7 @@
def _getContextName(self, context):
if getattr(context, 'getId', None) is not None:
return context.getId()
- getattr(context, '__name__', None)
+ return getattr(context, '__name__', None)
def breadcrumbs(self):
context = self.context
More information about the Zope-Checkins
mailing list