Commit 24090c5c authored by Jamie Lentin's avatar Jamie Lentin

Ensure __name__ is not None as well as __name__ existing.

parent f1c86907
...@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/releases/. ...@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed Bugs Fixed
++++++++++ ++++++++++
- Ensure __name__ is not None as well as __name__ existing. For example, object
could be a widget within a z3c.form MultiWidget, which do not have __name__ set.
- Testing: Re-added 'extra' argument to Functional.publish. - Testing: Re-added 'extra' argument to Functional.publish.
Removing it in Zope 2.13.0a1 did break backwards compatibility. Removing it in Zope 2.13.0a1 did break backwards compatibility.
......
...@@ -323,7 +323,7 @@ class TransactionsManager: ...@@ -323,7 +323,7 @@ class TransactionsManager:
while object is not None and \ while object is not None and \
not hasattr(object, 'getPhysicalPath'): not hasattr(object, 'getPhysicalPath'):
if not hasattr(object, '__name__'): if getattr(object, '__name__', None) is None:
object = None object = None
break break
to_append = (object.__name__,) + to_append to_append = (object.__name__,) + to_append
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment