[Erp5-report] r9803 - /erp5/trunk/products/ERP5/Tool/TemplateTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 11 15:26:05 CEST 2006


Author: jerome
Date: Mon Sep 11 15:26:03 2006
New Revision: 9803

URL: http://svn.erp5.org?rev=9803&view=rev
Log:
indentation with tabs

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

Modified: erp5/trunk/products/ERP5/Tool/TemplateTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/TemplateTool.py?rev=9803&r1=9802&r2=9803&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py Mon Sep 11 15:26:03 2006
@@ -490,8 +490,8 @@
               property_dict['title'] = temp_property_dict.get('title', [''])[0]
               property_dict['version'] = \
                   temp_property_dict.get('version', [''])[0]
-	      property_dict['revision'] = \
-	          temp_property_dict.get('revision', [''])[0]
+              property_dict['revision'] = \
+                  temp_property_dict.get('revision', [''])[0]
               property_dict['description'] = \
                   temp_property_dict.get('description', [''])[0]
               property_dict['license'] = \
@@ -597,11 +597,11 @@
       """
       result = None
       for repository, property_dict_list in self.repository_dict.items():
-	for property_dict in property_dict_list:
+        for property_dict in property_dict_list:
           provision_list = property_dict.get('provision_list', [])
           if title in provision_list:
             raise BusinessTemplateIsMeta, 'Business Template %s is provided by another one'%(title,)
-	  if title == property_dict['title']:
+          if title == property_dict['title']:
             if (version_restriction is None) or (self.compareVersionStrings(property_dict['version'], version_restriction)):
               if (result is None) or (self.compareVersions(property_dict['version'], result[2]) > 0):
                 result = (repository,  property_dict['id'], property_dict['version'])
@@ -751,29 +751,29 @@
               # if this business template is newer.
               previous_repository, previous_property_dict = \
                   template_item_dict[title]
-	      diff_version = self.compareVersions(previous_property_dict['version'],
+              diff_version = self.compareVersions(previous_property_dict['version'],
                                                   property_dict['version'])
               if diff_version < 0:
                 template_item_dict[title] = (repository, property_dict)
               elif diff_version == 0 \
-	           and previous_property_dict['revision'] \
-	           and property_dict['revision'] \
-		   and previous_property_dict['revision'] < property_dict['revision'] :
-		      template_item_dict[title] = (repository, property_dict)
+                   and previous_property_dict['revision'] \
+                   and property_dict['revision'] \
+                   and previous_property_dict['revision'] < property_dict['revision']:
+                      template_item_dict[title] = (repository, property_dict)
         # Next, select only updated business templates.
         for repository, property_dict in template_item_dict.values():
           installed_bt = \
               self.getInstalledBusinessTemplate(property_dict['title'])
           if installed_bt is not None:
-	    diff_version = self.compareVersions(installed_bt.getVersion(),
+            diff_version = self.compareVersions(installed_bt.getVersion(),
                                                 property_dict['version'])
             if diff_version < 0:
               template_item_list.append((repository, property_dict))
-	    elif diff_version == 0 \
-	         and installed_bt.getRevision() \
-	         and property_dict['revision'] \
-		 and installed_bt.getRevision() < property_dict['revision'] :
-		   template_item_list.append((repository, property_dict))
+            elif diff_version == 0 \
+                 and installed_bt.getRevision() \
+                 and property_dict['revision'] \
+                 and installed_bt.getRevision() < property_dict['revision']:
+                   template_item_list.append((repository, property_dict))
       else:
         for repository, property_dict_list in self.repository_dict.items():
           for property_dict in property_dict_list:




More information about the Erp5-report mailing list