3 from Products
.CMFCore
.utils
import getUtilityByInterfaceName
4 ptool
= getUtilityByInterfaceName('Products.CMFCore.interfaces.IPropertiesTool')
6 ajax_config
= (kw
.get('ajax_rootClickHandler', 0) and 1) + \
7 (kw
.get('ajax_autoFormManager', 0) and 2)
9 kw
['ajax_config'] = ajax_config
10 ptool
.editProperties(kw
)
12 return context
.setStatus(True, 'CMF Settings changed.')