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 @@ ...@@ -35,7 +35,9 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>icon</string> </key> <key> <string>icon</string> </key>
...@@ -95,7 +97,7 @@ ...@@ -95,7 +97,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1052 1056
\ No newline at end of file \ 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