Mise à jour des scripts chargés.
[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.')