Commit 2b339152 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Prevent infinitely trying to get portal_skins. This happens in very rare cases.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18379 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2500d8da
...@@ -69,8 +69,11 @@ def CMFCoreSkinnableSkinnableObjectManager___getattr__(self, name): ...@@ -69,8 +69,11 @@ def CMFCoreSkinnableSkinnableObjectManager___getattr__(self, name):
try: try:
return resolve[name] return resolve[name]
except KeyError: except KeyError:
if not ignore.has_key(name): if not ignore.has_key(name) and name != 'portal_skins':
try:
portal_skins = aq_base(self.portal_skins) portal_skins = aq_base(self.portal_skins)
except AttributeError:
raise AttributeError, name
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