[CMF-checkins] CVS: CMF/CMFDefault - utils.py:1.23

Yvo Schubbe y.2004_ at wcm-solutions.de
Thu Apr 15 08:52:53 EDT 2004


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv3530/CMFDefault

Modified Files:
	utils.py 
Log Message:
- added a small helper method needed for the OrderSupport UI changes


=== CMF/CMFDefault/utils.py 1.22 => 1.23 ===
--- CMF/CMFDefault/utils.py:1.22	Tue Feb 17 07:55:31 2004
+++ CMF/CMFDefault/utils.py	Thu Apr 15 08:52:52 2004
@@ -15,6 +15,7 @@
 $Id$
 """
 
+from cgi import escape
 from sgmllib import SGMLParser
 from types import ListType, StringType, TupleType, UnicodeType
 import re
@@ -22,6 +23,7 @@
 
 from Globals import package_home
 from AccessControl import ModuleSecurityInfo
+from ZTUtils.Zope import complex_marshal
 
 from Products.CMFCore.CMFCoreExceptions import IllegalHTML
 
@@ -414,3 +416,12 @@
         return 1
     else:
         return 0
+
+security.declarePublic('html_marshal')
+def html_marshal(**kw):
+    """ Marshal variables for html forms.
+    """
+    vars = []
+    for key, converter, value in complex_marshal( kw.items() ):
+        vars.append( ( key + converter, escape( str(value) ) ) )
+    return tuple(vars)




More information about the CMF-checkins mailing list