From 619041987d52e73fe11b08a51fa290731a18fc5e Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Tue, 18 Dec 2007 12:25:38 +0000
Subject: [PATCH] Instead of checking if a name is portal_skins, include it in
 the ignored dict.

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

diff --git a/product/ERP5Type/patches/CMFCoreSkinnable.py b/product/ERP5Type/patches/CMFCoreSkinnable.py
index 1628c6d940..8b195e9083 100644
--- a/product/ERP5Type/patches/CMFCoreSkinnable.py
+++ b/product/ERP5Type/patches/CMFCoreSkinnable.py
@@ -69,7 +69,7 @@ def CMFCoreSkinnableSkinnableObjectManager___getattr__(self, name):
       try:
         return resolve[name]
       except KeyError:
-        if not ignore.has_key(name) and name != 'portal_skins':
+        if not ignore.has_key(name):
           try:
             portal_skins = aq_base(self.portal_skins)
           except AttributeError:
@@ -131,7 +131,7 @@ def CMFCoreSkinnableSkinnableObjectManager_changeSkin(self, skinname):
       if sf is not None:
         skinname = sf.getDefaultSkin()
   tid = get_ident()
-  SKINDATA[tid] = (skinname, {}, {})
+  SKINDATA[tid] = (skinname, {'portal_skins': None}, {})
   REQUEST = getattr(self, 'REQUEST', None)
   if REQUEST is not None:
     REQUEST._hold(SkinDataCleanup(tid))
-- 
2.30.9