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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 10 10:22:22 CEST 2006


Author: jerome
Date: Thu Aug 10 10:22:17 2006
New Revision: 9119

URL: http://svn.erp5.org?rev=9119&view=rev
Log:
indentation made with \t

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

Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=9119&r1=9118&r2=9119&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py Thu Aug 10 10:22:17 2006
@@ -243,7 +243,7 @@
         return self.defined_group_list
 
     security.declareProtected(ERP5Permissions.AccessContentsInformation,
-		              'getCategoryList')
+                              'getCategoryList')
     def getCategoryList(self):
       """
        Return all the categories of the portal type
@@ -281,7 +281,7 @@
       return current_list
 
     security.declareProtected(ERP5Permissions.AccessContentsInformation,
-		              'getPropertyAndCategoryList')
+                              'getPropertyAndCategoryList')
     def getPropertyAndCategoryList(self):
       """
        Return all the properties and categories of
@@ -311,23 +311,23 @@
       current_list = []
       current_list += cat_list
       for base in ps_list:
-	ps_property = getattr(base, '_properties', None)
+        ps_property = getattr(base, '_properties', None)
         if type(ps_property) in (type(()), type([])):
           for prop in ps_property:
             if prop['type'] != 'content':
               if prop['id'] not in current_list:
-	        current_list.append(prop['id'])
-	    else:
-	      suffix_list = prop['acquired_property_id']
-	      for suffix in suffix_list:
-	        full_id = prop['id']+'_'+suffix
-		if full_id not in current_list:
-		  current_list.append(full_id)
+                current_list.append(prop['id'])
+            else:
+              suffix_list = prop['acquired_property_id']
+              for suffix in suffix_list:
+                full_id = prop['id']+'_'+suffix
+                if full_id not in current_list:
+                  current_list.append(full_id)
         ps_property = getattr(base, '_categories', None)
-	if type(ps_property) in (type(()), type([])):
-	  cat_dict_list = []
-	  for category in ps_property:
-	    if category not in current_list:
+        if type(ps_property) in (type(()), type([])):
+          cat_dict_list = []
+          for category in ps_property:
+            if category not in current_list:
               current_list.append(category)
       return current_list
 




More information about the Erp5-report mailing list