Commit c8c6f09d authored by Ivan Tyagov's avatar Ivan Tyagov Committed by Eteri

A hotfix for ERP5 sites which do not yet have inside ZODB instance of portal_callables tool.

parent 854be148
......@@ -68,9 +68,13 @@ Skinnable.SkinnableObjectManager.initializeCache = CMFCoreSkinnableSkinnableObje
def skinResolve(self, selection, name):
try:
portal_skins = aq_base(self.portal_skins)
portal_callables = aq_base(self.portal_callables)
except AttributeError:
raise AttributeError, name
try:
portal_callables = aq_base(self.portal_callables)
except AttributeError:
# backwards compatability for ERP5 sites without this tool
portal_callables = None
try:
skin_selection_mapping = portal_skins._v_skin_location_list
reset = False
......
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