[CMF-checkins] CVS: CMF - Document.py:1.19
Jeffrey Shell
jeffrey@digicool.com
Thu, 31 May 2001 20:21:28 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFDefault
Modified Files:
Document.py
Log Message:
Use CMFCore.utils.keywordsplitter to construct 'Subject' dublin core
header from both 'Keywords' and 'Subject' headers passed in (meta
tags/rfc822).
--- Updated File Document.py in package CMF --
--- Document.py 2001/05/30 21:07:10 1.18
+++ Document.py 2001/06/01 00:21:28 1.19
@@ -95,7 +95,7 @@
from Products.CMFCore import CMFCorePermissions
from Products.CMFCore.WorkflowCore import WorkflowAction, afterCreate
-from Products.CMFCore.utils import _format_stx
+from Products.CMFCore.utils import _format_stx, keywordsplitter
from utils import parseHeadersBody, SimpleHTMLParser, bodyfinder, _dtmldir
factory_type_information = ( { 'id' : 'Document'
@@ -212,6 +212,7 @@
self.text = body
headers['Format'] = self.Format()
+ headers['Subject'] = keywordsplitter(headers)
haveheader = headers.has_key
for key, value in self.getMetadataHeaders():
if key != 'Format' and not haveheader(key):