Commit a6e3cc76 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

patches/CMFCoreSkinnable: do not use getSkinsFolderName

It is no longer supported in CMF 2.3, see Products.CMFCore
754894460271f8562d03e8c51e6efcee7223a3ba.
parent 15e48beb
...@@ -141,11 +141,9 @@ def CMFCoreSkinnableSkinnableObjectManager_changeSkin(self, skinname, REQUEST=No ...@@ -141,11 +141,9 @@ def CMFCoreSkinnableSkinnableObjectManager_changeSkin(self, skinname, REQUEST=No
Patched not to call getSkin. Patched not to call getSkin.
''' '''
if skinname is None: if skinname is None:
sfn = self.getSkinsFolderName() sf = getattr(self, "portal_skins", None)
if sfn is not None: if sf is not None:
sf = getattr(self, sfn, None) skinname = sf.getDefaultSkin()
if sf is not None:
skinname = sf.getDefaultSkin()
tid = get_ident() tid = get_ident()
SKINDATA[tid] = ( SKINDATA[tid] = (
None, 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