Commit a2107402 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_web: fix getContentType takes 1 argument in WebPage_exportAsSingleFile

parent b5326167
...@@ -180,7 +180,7 @@ def handleHrefObject(obj, src, default_mimetype="text/html", default_data="<p>Li ...@@ -180,7 +180,7 @@ def handleHrefObject(obj, src, default_mimetype="text/html", default_data="<p>Li
# handle File portal_skins/folder/file.png # handle File portal_skins/folder/file.png
# XXX handle "?portal_skin=" parameter ? # XXX handle "?portal_skin=" parameter ?
if hasattr(obj, "getContentType"): if hasattr(obj, "getContentType"):
mime = obj.getContentType("") mime = obj.getContentType()
if mime: if mime:
data = getattr(obj, "getData", lambda: str(obj))() or "" data = getattr(obj, "getData", lambda: str(obj))() or ""
if isinstance(data, unicode): if isinstance(data, unicode):
......
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