_getContextName in Products.Five.browser.absoluteurl doesn't always return value

Bug #537453 reported by sagblmi on 2010-03-11
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Undecided
Martijn Pieters

Bug Description

Zope2-2.12.3

In Products.Five.browser.absoluteurl the _getContextName(self, context) is not completed

Current implementation:

 def _getContextName(self, context):
        if getattr(context, 'getId', None) is not None:
            return context.getId()
        getattr(context, '__name__', None)

expected implementation;
 def _getContextName(self, context):
        if getattr(context, 'getId', None) is not None:
            return context.getId()
        return getattr(context, '__name__', None)

Tres Seaver (tseaver) wrote :

MJ has checked in a fix for this bug, but still owes us a test.

Changed in zope2:
status: New → Fix Committed
Changed in zope2:
assignee: nobody → Martijn Pieters (mjpieters)
Hanno Schlichting (hannosch) wrote :

I'll let this slip through without a test.

Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers