From c8c6bf3e2bac33966ecf381b9cf45a394f5498e6 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Mon, 31 May 2010 10:02:58 +0000 Subject: [PATCH] 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 --- product/ERP5/mixin/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/mixin/document.py b/product/ERP5/mixin/document.py index 4d30640d60..ce046d630c 100644 --- a/product/ERP5/mixin/document.py +++ b/product/ERP5/mixin/document.py @@ -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. -- 2.30.9