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

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


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

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


=== Products/CMFDefault/skins/zpt_control/portal_config_control.py 1.1 => 1.2 ===
--- /dev/null	Sun Oct 17 16:04:24 2004
+++ Products/CMFDefault/skins/zpt_control/portal_config_control.py	Sun Oct 17 16:03:54 2004
@@ -0,0 +1,11 @@
+##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.')

=== Removed File Products/CMFDefault/skins/zpt_control/reconfig.py ===



More information about the CMF-checkins mailing list