diff --git a/product/ERP5OOo/Document/DMSFile.py b/product/ERP5OOo/Document/DMSFile.py index 80b671fa80c8d0aab46513c314c245d42c8db080..d02267761abe9f8e766783dbde50095536669947 100644 --- a/product/ERP5OOo/Document/DMSFile.py +++ b/product/ERP5OOo/Document/DMSFile.py @@ -162,9 +162,6 @@ class DMSFile(XMLObject,File): searchable_attrs=('title','description','id','reference','version', 'short_title','keywords','subject','source_reference','source_project_title') - # XXX a hack-around untill JPS's Data property sheets stops to break thins :) - content_type='application/unknown' - ### Content indexing methods security.declareProtected(Permissions.View, 'getSearchableText') def getSearchableText(self, md=None): diff --git a/product/ERP5OOo/Document/OOoDocument.py b/product/ERP5OOo/Document/OOoDocument.py index 8605d7ebb170763b0c9f1b29bfcceeaf7530f834..cd2b1ba7d8918c995d24c930f77148955287a492 100644 --- a/product/ERP5OOo/Document/OOoDocument.py +++ b/product/ERP5OOo/Document/OOoDocument.py @@ -99,7 +99,6 @@ class OOoDocument(DMSFile, CachingMixin): property_sheets = ( PropertySheet.Base , PropertySheet.CategoryCore , PropertySheet.DublinCore - , PropertySheet.Data , PropertySheet.Version , PropertySheet.Reference , PropertySheet.Document diff --git a/product/ERP5OOo/PropertySheet/DMSFile.py b/product/ERP5OOo/PropertySheet/DMSFile.py index a88bce06add270c0138e6d57daa4a5d18f13d818..19a01698aeabf1e3a80e78c4f37682fddf63c8b7 100644 --- a/product/ERP5OOo/PropertySheet/DMSFile.py +++ b/product/ERP5OOo/PropertySheet/DMSFile.py @@ -31,6 +31,11 @@ class DMSFile: """ _properties = ( + { 'id' : 'content_type', + 'description' : 'content type', + 'type' : 'string', + 'default' : 'application/unknown', + 'mode' : 'w' }, ) _categories = ('destination','similar','predecessor','successor','source_project','publication_section','classification',