From 4f1353db38c3e634c0026c83e5c784f4b913d534 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 1 Feb 2006 19:06:52 +0000
Subject: [PATCH] disable delattr() in makeTemplateInstance, because attribute
 is not set on the class.

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

diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index 0748428288..ba804ed78c 100755
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -2246,8 +2246,10 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
     """
     if self.getParentValue().getPortalType() == "Preference":
       raise ValueError, "Template instances can not be created within Preferences"
-    if hasattr(aq_base(self), 'isIndexable'): delattr(self, 'isIndexable')
-    if hasattr(aq_base(self), 'isTemplate'): delattr(self, 'isTemplate')
+    #if hasattr(aq_base(self), 'isIndexable'): delattr(self, 'isIndexable')
+    #if hasattr(aq_base(self), 'isTemplate'): delattr(self, 'isTemplate')
+    # FIXME: attribute is not set on the class, delattr fails.
+    
     # Add to catalog
     self.reindexObject()
 
-- 
2.30.9