[Erp5-report] r35774 nicolas - /erp5/trunk/products/ERP5/mixin/document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon May 31 12:02:58 CEST 2010


Author: nicolas
Date: Mon May 31 12:02:58 2010
New Revision: 35774

URL: http://svn.erp5.org?rev=35774&view=rev
Log:
Be more generic,
do not assume that dictionary is named kw

Modified:
    erp5/trunk/products/ERP5/mixin/document.py

Modified: erp5/trunk/products/ERP5/mixin/document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/document.py?rev=35774&r1=35773&r2=35774&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/document.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/document.py [utf8] Mon May 31 12:02:58 2010
@@ -87,7 +87,7 @@
     # 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.




More information about the Erp5-report mailing list