[Erp5-report] r29086 - /erp5/trunk/products/ERP5/Tool/IdTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 17 08:34:46 CEST 2009


Author: vincent
Date: Thu Sep 17 08:34:46 2009
New Revision: 29086

URL: http://svn.erp5.org?rev=29086&view=rev
Log:
Fix coding style (spaces around operators).

Modified:
    erp5/trunk/products/ERP5/Tool/IdTool.py

Modified: erp5/trunk/products/ERP5/Tool/IdTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/IdTool.py?rev=29086&r1=29085&r2=29086&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/IdTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/IdTool.py [utf8] Thu Sep 17 08:34:46 2009
@@ -53,27 +53,27 @@
 
   security.declareProtected(Permissions.AccessContentsInformation,
                             'getLastGeneratedId')
-  def getLastGeneratedId(self,id_group=None,default=None):
+  def getLastGeneratedId(self, id_group=None, default=None):
     """
     Get the last id generated
     """
     if getattr(aq_base(self), 'dict_ids', None) is None:
       self.dict_ids = PersistentMapping()
     last_id = None
-    if id_group is not None and id_group!='None':
+    if id_group is not None and id_group != 'None':
       last_id = self.dict_ids.get(id_group, default)
     return last_id
         
   security.declareProtected(Permissions.ModifyPortalContent,
                             'setLastGeneratedId')
-  def setLastGeneratedId(self,new_id,id_group=None):
+  def setLastGeneratedId(self, new_id, id_group=None):
     """
     Set a new last id. This is usefull in order to reset
     a sequence of ids.
     """
     if getattr(aq_base(self), 'dict_ids', None) is None:
       self.dict_ids = PersistentMapping()
-    if id_group is not None and id_group!='None':
+    if id_group is not None and id_group != 'None':
       self.dict_ids[id_group] = new_id
         
   security.declareProtected(Permissions.AccessContentsInformation,




More information about the Erp5-report mailing list