Merge commit 'a4cb4d96face514924387d34746b3148848ac092' into zope-2.13
[Plinn.git] / skins / custom_control / portal_config_control.py
1 ##parameters=**kw
2 ##
3 from Products.CMFCore.utils import getUtilityByInterfaceName
4 ptool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IPropertiesTool')
5
6 ajax_config = (kw.get('ajax_rootClickHandler', 0) and 1) + \
7 (kw.get('ajax_autoFormManager', 0) and 2)
8
9 kw['ajax_config'] = ajax_config
10 ptool.editProperties(kw)
11
12 return context.setStatus(True, 'CMF Settings changed.')