Commit 520ca56d authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use the method aq_base, instead of the attribute aq_base.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18375 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4cf50052
...@@ -16,6 +16,7 @@ from Products.CMFCore import Skinnable ...@@ -16,6 +16,7 @@ from Products.CMFCore import Skinnable
from Products.CMFCore.Skinnable import SKINDATA, superGetAttr, SkinDataCleanup, SkinnableObjectManager from Products.CMFCore.Skinnable import SKINDATA, superGetAttr, SkinDataCleanup, SkinnableObjectManager
from thread import get_ident from thread import get_ident
from zLOG import LOG from zLOG import LOG
from Acquisition import aq_base
""" """
This patch modifies the way CMF Portal Skins gets a skin by its name from This patch modifies the way CMF Portal Skins gets a skin by its name from
...@@ -69,7 +70,7 @@ def CMFCoreSkinnableSkinnableObjectManager___getattr__(self, name): ...@@ -69,7 +70,7 @@ def CMFCoreSkinnableSkinnableObjectManager___getattr__(self, name):
return resolve[name] return resolve[name]
except KeyError: except KeyError:
if not ignore.has_key(name): if not ignore.has_key(name):
portal_skins = self.portal_skins.aq_base portal_skins = aq_base(self.portal_skins)
try: try:
skin_selection_mapping = portal_skins._v_skin_location_list skin_selection_mapping = portal_skins._v_skin_location_list
except AttributeError: except AttributeError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment