Commit 22acbcfc authored by Nicolas Delaby's avatar Nicolas Delaby

Fix tales expression when getContentType return None

reviewed by romain

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31598 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 29efd88b
......@@ -35,7 +35,9 @@
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>icon</string> </key>
......@@ -95,7 +97,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: object is not None and not object.isWebMode() and object.getContentType().startswith(\'text/\')</string> </value>
<value> <string>python: object is not None and not object.isWebMode() and (object.getContentType() or \'\').startswith(\'text/\')</string> </value>
</item>
</dictionary>
</pickle>
......
1052
\ No newline at end of file
1056
\ No newline at end of file
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