[Erp5-report] r10712 - in /erp5/trunk/products/ERP5OOo: Document/ PropertySheet/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 13 22:04:34 CEST 2006
Author: bartek
Date: Fri Oct 13 22:04:32 2006
New Revision: 10712
URL: http://svn.erp5.org?rev=10712&view=rev
Log:
handling content_type in a property_sheet
Modified:
erp5/trunk/products/ERP5OOo/Document/DMSFile.py
erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
erp5/trunk/products/ERP5OOo/PropertySheet/DMSFile.py
Modified: erp5/trunk/products/ERP5OOo/Document/DMSFile.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/Document/DMSFile.py?rev=10712&r1=10711&r2=10712&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/DMSFile.py (original)
+++ erp5/trunk/products/ERP5OOo/Document/DMSFile.py Fri Oct 13 22:04:32 2006
@@ -162,9 +162,6 @@
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):
Modified: erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/Document/OOoDocument.py?rev=10712&r1=10711&r2=10712&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py Fri Oct 13 22:04:32 2006
@@ -99,7 +99,6 @@
property_sheets = ( PropertySheet.Base
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
- , PropertySheet.Data
, PropertySheet.Version
, PropertySheet.Reference
, PropertySheet.Document
Modified: erp5/trunk/products/ERP5OOo/PropertySheet/DMSFile.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/PropertySheet/DMSFile.py?rev=10712&r1=10711&r2=10712&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/PropertySheet/DMSFile.py (original)
+++ erp5/trunk/products/ERP5OOo/PropertySheet/DMSFile.py Fri Oct 13 22:04:32 2006
@@ -31,6 +31,11 @@
"""
_properties = (
+ { 'id' : 'content_type',
+ 'description' : 'content type',
+ 'type' : 'string',
+ 'default' : 'application/unknown',
+ 'mode' : 'w' },
)
_categories = ('destination','similar','predecessor','successor','source_project','publication_section','classification',
More information about the Erp5-report
mailing list