From 8891bb30230dc67a2b7a67dea583ea280573856b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl>
Date: Wed, 4 Oct 2006 19:47:50 +0000
Subject: [PATCH] initialize content_type (since data property sheet is not
 usable yet)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10552 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/Document/DMSFile.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/ERP5OOo/Document/DMSFile.py b/product/ERP5OOo/Document/DMSFile.py
index 45493e557e..1ec9c0c309 100644
--- a/product/ERP5OOo/Document/DMSFile.py
+++ b/product/ERP5OOo/Document/DMSFile.py
@@ -162,6 +162,9 @@ 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):
-- 
2.30.9