Commit 65fbddeb authored by Ivan Tyagov's avatar Ivan Tyagov

Prevent recursion by using proper API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37161 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c21e03b
...@@ -201,7 +201,7 @@ class OOoDocumentExtensibleTraversableMixIn(BaseExtensibleTraversableMixIn): ...@@ -201,7 +201,7 @@ class OOoDocumentExtensibleTraversableMixIn(BaseExtensibleTraversableMixIn):
mime, data = self.getConversion(format=EMBEDDED_FORMAT, file_name=name) mime, data = self.getConversion(format=EMBEDDED_FORMAT, file_name=name)
document = OFSFile(name, name, data, content_type=mime).__of__(self.aq_parent) document = OFSFile(name, name, data, content_type=mime).__of__(self.aq_parent)
except (NotConvertedError, ConversionError, KeyError): except (NotConvertedError, ConversionError, KeyError):
document = DocumentExtensibleTraversableMixIn._getExtensibleContent(self, request, name) document = DocumentExtensibleTraversableMixIn.getExtensibleContent(self, request, name)
# restore original security context if there's a logged in user # restore original security context if there's a logged in user
if user is not None: if user is not None:
setSecurityManager(old_manager) setSecurityManager(old_manager)
......
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