Commit cff80c42 authored by Romain Courteaud's avatar Romain Courteaud

Fix method name existence, as some object may have getDocumentValue and not getDocumentValueList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26193 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 291c9f6f
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>if getattr(context, \'getDocumentValue\', None) is not None:\n <value> <string>if getattr(context, \'getDocumentValueList\', None) is not None:\n
return context.getDocumentValueList(**kw)\n return context.getDocumentValueList(**kw)\n
return context.portal_catalog(**kw)\n return context.portal_catalog(**kw)\n
</string> </value> </string> </value>
......
1135 1136
\ 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