[CMF-checkins] CVS: Products/CMFCore - utils.py:1.39.2.5

Stefan H. Holek stefan at epy.co.at
Sun Jul 25 16:12:47 EDT 2004


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv20190/CMFCore

Modified Files:
      Tag: CMF-1_4-branch
	utils.py 
Log Message:
WebDAV PUT caused improper splitting of the 'Contributors' metadata header.
Also see http://plone.org/collector/3217


=== Products/CMFCore/utils.py 1.39.2.4 => 1.39.2.5 ===
--- Products/CMFCore/utils.py:1.39.2.4	Fri Apr 23 17:11:33 2004
+++ Products/CMFCore/utils.py	Sun Jul 25 16:12:17 2004
@@ -621,6 +621,20 @@
     return out
 
 #
+#   Metadata Contributors splitter utilities
+#
+CONTRIBSPLITRE = re.compile(r';')
+
+security.declarePublic('contributorsplitter')
+def contributorsplitter( headers
+                       , names=('Contributors',)
+                       , splitter=CONTRIBSPLITRE.split
+                       ):
+    """ Split contributors out of headers, keyed on names.  Returns list.
+    """
+    return keywordsplitter(headers, names, splitter)
+
+#
 #   Directory-handling utilities
 #
 security.declarePublic('normalize')



More information about the CMF-checkins mailing list