Commit 5dfe3bc8 authored by Shane Hathaway's avatar Shane Hathaway

Added a band-aid that sets the correct ID of instances of

ZClasses derived from Item_w__name__ (such as DTMLMethods).
parent a2ce4b8d
......@@ -450,6 +450,9 @@ class ZClass(OFS.SimpleItem.SimpleItem):
"""
i=mapply(self._zclass_, (), REQUEST)
if not hasattr(i, 'id') or not i.id: i.id=id
# Temporary band-aid:
if getattr(i, '__name__', None) == '<string>':
i.__name__ = id
folder=durl=None
if hasattr(self, 'Destination'):
......
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