Commit 387f2748 authored by Bartek Górny's avatar Bartek Górny

handling content_type in a property_sheet

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10712 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 45fa842a
......@@ -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):
......
......@@ -99,7 +99,6 @@ class OOoDocument(DMSFile, CachingMixin):
property_sheets = ( PropertySheet.Base
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.Data
, PropertySheet.Version
, PropertySheet.Reference
, PropertySheet.Document
......
......@@ -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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment