From bff2ac23a59bc25039ec3bcfbde2c73216c10421 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet <nicolas.dumazet@nexedi.com> Date: Mon, 17 Jan 2011 02:51:05 +0000 Subject: [PATCH] make sure that ghost portal type classes have a correct portal_type attribute git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42364 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/dynamic/lazy_class.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/dynamic/lazy_class.py b/product/ERP5Type/dynamic/lazy_class.py index 14ff5d7b52..d1ceb05c12 100644 --- a/product/ERP5Type/dynamic/lazy_class.py +++ b/product/ERP5Type/dynamic/lazy_class.py @@ -227,4 +227,6 @@ class PortalTypeMetaClass(GhostBaseMetaClass): ERP5Base.aq_method_lock.release() def generateLazyPortalTypeClass(portal_type_name): - return PortalTypeMetaClass(portal_type_name, (InitGhostBase,), {}) + return PortalTypeMetaClass(portal_type_name, + (InitGhostBase,), + dict(portal_type=portal_type_name)) -- 2.30.9