[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_control - portal_config_control.py:1.1.2.1 reconfig.py:1.1.6.1

Yvo Schubbe y.2004_ at wcm-solutions.de
Sun Oct 17 16:03:46 EDT 2004


Update of /cvs-repository/Products/CMFDefault/skins/zpt_control
In directory cvs.zope.org:/tmp/cvs-serv4290/CMFDefault/skins/zpt_control

Modified Files:
      Tag: CMF-1_5-branch
	reconfig.py 
Added Files:
      Tag: CMF-1_5-branch
	portal_config_control.py 
Log Message:
- refactored reconfig_form
- added 'default_charset' property (http://collector.zope.org/CMF/261, part 2)


=== Added File Products/CMFDefault/skins/zpt_control/portal_config_control.py ===
##parameters=**kw
##
from Products.CMFCore.utils import getToolByName

ptool = getToolByName(script, 'portal_properties')

if not ptool.hasProperty('default_charset'):
    ptool.manage_addProperty('default_charset', '', 'string')
ptool.editProperties(kw)

return context.setStatus(True, 'CMF Settings changed.')


=== Products/CMFDefault/skins/zpt_control/reconfig.py 1.1 => 1.1.6.1 ===
--- Products/CMFDefault/skins/zpt_control/reconfig.py:1.1	Tue Jul  6 17:45:16 2004
+++ Products/CMFDefault/skins/zpt_control/reconfig.py	Sun Oct 17 16:03:16 2004
@@ -1,6 +1,7 @@
 ## Script (Python) "reconfig"
 ##title=Reconfigure Portal
 ##parameters=
+# this script is deprecated; please use portal_config_control
 REQUEST=context.REQUEST
 context.portal_properties.editProperties(REQUEST)
 return REQUEST.RESPONSE.redirect(context.portal_url() + '/reconfig_form?portal_status_message=CMF+Settings+changed.')



More information about the CMF-checkins mailing list