Commit 6373252b authored by Vincent Pelletier's avatar Vincent Pelletier

Set all parameters ont the monkeypatched function, otherwise mapply won't...

Set all parameters ont the monkeypatched function, otherwise mapply won't provide all needed arguments. A cleaner solution would be to call mapply again, but that might be overkill for just a unique possible function call (as opposed to wrapper method case defined in SelectionTool).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12019 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5c276b0
......@@ -21,14 +21,17 @@ from Products.CMFCore.SkinsTool import SkinsTool
original_manage_skinLayers = SkinsTool.manage_skinLayers
def CMFCoreSkinsTool_manage_skinLayers(self, *args, **kw):
def CMFCoreSkinsTool_manage_skinLayers(self, chosen=(), add_skin=0, del_skin=0,
skinname='', skinpath='', REQUEST=None):
"""
Make sure cache is flushed when skin layers are modified.
"""
if getattr(self, '_v_skin_location_list', None) is not None:
self._p_changed = 1
delattr(self, '_v_skin_location_list')
return original_manage_skinLayers(self, *args, **kw)
return original_manage_skinLayers(self, chosen=chosen, add_skin=add_skin,
del_skin=del_skin, skinname=skinname,
skinpath=skinpath, REQUEST=REQUEST)
def CMFCoreSkinsTool__updateCacheEntry(self, container_id, object_id):
"""
......
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