Commit a8a2604e authored by Tristan Cavelier's avatar Tristan Cavelier

virtual_folder: fix handling of default parameter in _getOb

parent 733458b7
......@@ -83,4 +83,9 @@ class VirtualFolderMixin:
if document_url is not None:
return self.getPortalObject().unrestrictedTraverse(document_url)
return Folder._getOb(self, id, **kw)
try:
return Folder._getOb(self, id, **kw)
except KeyError:
if default is _marker:
raise
return default
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