[Erp5-report] r13476 - /erp5/trunk/products/ERP5/PropertySheet/Document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Mar 18 18:39:44 CET 2007


Author: jp
Date: Sun Mar 18 18:39:43 2007
New Revision: 13476

URL: http://svn.erp5.org?rev=13476&view=rev
Log:
Added support for base format.

Modified:
    erp5/trunk/products/ERP5/PropertySheet/Document.py

Modified: erp5/trunk/products/ERP5/PropertySheet/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/Document.py?rev=13476&r1=13475&r2=13476&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/Document.py (original)
+++ erp5/trunk/products/ERP5/PropertySheet/Document.py Sun Mar 18 18:39:43 2007
@@ -31,6 +31,13 @@
   """
 
   _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 @@
                  # 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
-




More information about the Erp5-report mailing list