[CMF-checkins] CVS: Products/CMFCalendar - Event.py:1.18
Stefan H. Holek
stefan at epy.co.at
Sat Jul 31 10:07:08 EDT 2004
Update of /cvs-repository/Products/CMFCalendar
In directory cvs.zope.org:/tmp/cvs-serv23861/CMFCalendar
Modified Files:
Event.py
Log Message:
WebDAV PUT() caused improper splitting of 'Contributors' metadata header.
=== Products/CMFCalendar/Event.py 1.17 => 1.18 ===
--- Products/CMFCalendar/Event.py:1.17 Thu Apr 29 12:13:15 2004
+++ Products/CMFCalendar/Event.py Sat Jul 31 10:06:32 2004
@@ -23,6 +23,7 @@
from Products.CMFCore.PortalContent import PortalContent
from Products.CMFCore.WorkflowCore import WorkflowAction
from Products.CMFCore.utils import keywordsplitter
+from Products.CMFCore.utils import contributorsplitter
from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
from Products.CMFDefault.utils import formatRFC822Headers
@@ -348,9 +349,11 @@
headers['Format'] = self.Format()
new_subject = keywordsplitter(headers)
headers['Subject'] = new_subject or self.Subject()
+ new_contrib = contributorsplitter(headers)
+ headers['Contributors'] = new_contrib or self.Contributors()
haveheader = headers.has_key
for key, value in self.getMetadataHeaders():
- if key != 'Format' and not haveheader(key):
+ if not haveheader(key):
headers[key] = value
self._editMetadata(title=headers['Title'],
subject=headers['Subject'],
More information about the CMF-checkins
mailing list