From 95fbae74e4715f78df8614b78390157e76969a8b Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Sat, 11 Apr 2009 01:24:41 +0000
Subject: [PATCH] Use an iterator for better performance.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26401 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index ba01c07bc8..b3bcba78e1 100644
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -900,7 +900,7 @@ class Base( CopyContainer,
       portal_types = getToolByName(portal, 'portal_types', None)
       generated_bid = {}
       econtext = createExpressionContext(object=self, portal=portal)
-      for pid, ps in PropertySheet.__dict__.items():
+      for pid, ps in PropertySheet.__dict__.iteritems():
         if pid[0] != '_':
           base_category_list = []
           for cat in getattr(ps, '_categories', ()):
-- 
2.30.9