Commit c8c6bf3e authored by Nicolas Delaby's avatar Nicolas Delaby

Be more generic,

do not assume that dictionary is named kw


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35774 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d56e89ac
......@@ -87,7 +87,7 @@ class DocumentMixin:
# XXX cache result in TV
method = self._getTypeBasedMethod('checkConversionFormatPermission',
fallback_script_id='Document_checkConversionFormatPermission')
if '**kw' not in method.params():
if '**' not in method.params():
# Backward compatibility code:
# Existing Type Based Method doesn't support new **kw argument
# in their signature.
......
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