[Erp5-report] r21488 - /erp5/trunk/products/ERP5Type/CopySupport.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 11 10:35:50 CEST 2008


Author: romain
Date: Wed Jun 11 10:35:50 2008
New Revision: 21488

URL: http://svn.erp5.org?rev=21488&view=rev
Log:
Do not use python keyword as variable name

Modified:
    erp5/trunk/products/ERP5Type/CopySupport.py

Modified: erp5/trunk/products/ERP5Type/CopySupport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CopySupport.py?rev=21488&r1=21487&r2=21488&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CopySupport.py (original)
+++ erp5/trunk/products/ERP5Type/CopySupport.py Wed Jun 11 10:35:50 2008
@@ -251,12 +251,12 @@
         userid=user.getId()
         if userid is not None:
           #remove previous owners
-          dict = self.__ac_local_roles__
-          for key, value in dict.items():
+          local_role_dict = self.__ac_local_roles__
+          for key, value in local_role_dict.items():
             if 'Owner' in value:
               value.remove('Owner')
           #add new owner
-          l=dict.setdefault(userid, [])
+          l=local_role_dict.setdefault(userid, [])
           l.append('Owner')
 
     # Clear the transaction references




More information about the Erp5-report mailing list