From 70b5aff484e3a833a0f8e89fa7b234303b300d8e Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Sun, 18 Mar 2007 17:39:43 +0000
Subject: [PATCH] Added support for base format.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13476 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/PropertySheet/Document.py | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/product/ERP5/PropertySheet/Document.py b/product/ERP5/PropertySheet/Document.py
index b5a959497c..02a9c17c35 100644
--- a/product/ERP5/PropertySheet/Document.py
+++ b/product/ERP5/PropertySheet/Document.py
@@ -31,6 +31,13 @@ class Document:
   """
 
   _properties = (
+    { 'id'              : 'base_data',
+      'description'     : 'An object (string, stream, etc.) which contains raw data'
+                          'to store the converted content of the document in its base format',
+      'type'            : 'object',
+      'default'         : '',
+      'read_permission' : 'Manage properties',
+      'mode'            : 'w' },
   )
 
   _categories = ('similar', 'predecessor', 'successor', 'contributor', 'classification',
@@ -44,15 +51,4 @@ class Document:
                  # and removed from here
                  'publication_section', 'function', 'group', 'site')
 
-  # XXX Romain: constraint should be used by default only if
-  # it is necessary from a system point of view
-#   _constraints = (
-#       {
-#       'id'          :   'unique_reference',
-#       'description' :   'The reference, language and version should be unique',
-#       'type'        :   'DocumentReferenceConstraint'},
-#     )
- 
-
-# vim: shiftwidth=2
 
-- 
2.30.9