Commit c5268193 authored by Ivan Tyagov's avatar Ivan Tyagov

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

parent a1b756b0
...@@ -68,9 +68,13 @@ Skinnable.SkinnableObjectManager.initializeCache = CMFCoreSkinnableSkinnableObje ...@@ -68,9 +68,13 @@ Skinnable.SkinnableObjectManager.initializeCache = CMFCoreSkinnableSkinnableObje
def skinResolve(self, selection, name): def skinResolve(self, selection, name):
try: try:
portal_skins = aq_base(self.portal_skins) portal_skins = aq_base(self.portal_skins)
portal_callables = aq_base(self.portal_callables)
except AttributeError: except AttributeError:
raise AttributeError, name 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: try:
skin_selection_mapping = portal_skins._v_skin_location_list skin_selection_mapping = portal_skins._v_skin_location_list
reset = False 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