From 411bdd9b171b91fa1caf348e742c85cf77b37670 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Wed, 21 Dec 2005 10:48:02 +0000
Subject: [PATCH] don't take old properties of catalog method into account but
 still get them for backward compatibility

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4833 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessTemplate.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index f0ef18b3e7..f79f95d955 100755
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -1378,8 +1378,9 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
         else:
           LOG('BusinessTemplate import CatalogMethod, type unknown', 0, key_type)
           continue
-        dict = getattr(self, key)
-        dict[id] = value
+        if key in catalog_method_list or key in catalog_method_filter_list:
+          dict = getattr(self, key)
+          dict[id] = value
 
 class ActionTemplateItem(ObjectTemplateItem):
 
-- 
2.30.9