From 8237d0fe0d8593a681a400ef0601ba57a1c35e22 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Tue, 18 Jan 2011 16:01:12 +0000
Subject: [PATCH] revert 42398 for now

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42424 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/dynamic/lazy_class.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/product/ERP5Type/dynamic/lazy_class.py b/product/ERP5Type/dynamic/lazy_class.py
index 8375812e45..d1ceb05c12 100644
--- a/product/ERP5Type/dynamic/lazy_class.py
+++ b/product/ERP5Type/dynamic/lazy_class.py
@@ -50,8 +50,6 @@ class GhostBaseMetaClass(ExtensionClass):
       Because __bases__ is changed, the behavior of this object
       will change after the first call.
       """
-      if attr == 'meta_type':
-        return cls.meta_type
       # Class must be loaded if '__of__' is requested because otherwise,
       # next call to __getattribute__ would lose any acquisition wrapper.
       if attr in ('__class__',
@@ -156,7 +154,6 @@ class PortalTypeMetaClass(GhostBaseMetaClass):
         if attr not in ('__module__',
                         '__doc__',
                         '__isghost__',
-                        'meta_type',
                         'portal_type'):
           delattr(cls, attr)
       # generate a ghostbase that derives from all previous bases
@@ -232,5 +229,4 @@ class PortalTypeMetaClass(GhostBaseMetaClass):
 def generateLazyPortalTypeClass(portal_type_name):
   return PortalTypeMetaClass(portal_type_name,
                              (InitGhostBase,),
-                             dict(portal_type=portal_type_name,
-                                  meta_type='ERP5 %s' % portal_type_name))
+                             dict(portal_type=portal_type_name))
-- 
2.30.9