Commit 611bbfc8 authored by Vincent Pelletier's avatar Vincent Pelletier

self is index 0 in aq_chain list, not -1... So portal_skins is (potentialy) index 1, not -2.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11988 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a305ed41
......@@ -37,7 +37,7 @@ def Folder_setOb(self, id, object):
return
if len(aq_chain) < 2: # Acquisition context is not deep enough for context to possibly be below portal skins.
return
portal_skins = aq_chain[-2]
portal_skins = aq_chain[1]
if getattr(portal_skins, 'meta_type', '') != 'CMF Skins Tool' : # It is not a skin tool we're below.
return
_updateCacheEntry = getattr(portal_skins.aq_base, '_updateCacheEntry', None)
......
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