[Erp5-report] r35221 nicolas - /erp5/trunk/products/ERP5/Document/Document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 12 15:52:30 CEST 2010


Author: nicolas
Date: Wed May 12 15:52:25 2010
New Revision: 35221

URL: http://svn.erp5.org?rev=35221&view=rev
Log:
Delcare globally the list of text formats and image formats,
in order to share them in all Document's (OOoDocument, Image, File, ...)
code and improve consistency.

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

Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=35221&r1=35220&r2=35221&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Document.py [utf8] Wed May 12 15:52:25 2010
@@ -61,6 +61,11 @@
 VALID_ORDER_KEY_LIST = ('user_login', 'content', 'file_name', 'input')
 # these property ids are unchangable
 FIXED_PROPERTY_IDS =  ('id', 'uid', 'rid', 'sid')
+
+VALID_TEXT_FORMAT_LIST = ('text', 'txt', 'html', 'base_html',
+                          'stripped-html')
+
+VALID_IMAGE_FORMAT_LIST = ('jpg', 'jpeg', 'png', 'gif', 'pnm', 'ppm', 'tiff')
 
 class SnapshotMixin:
   """




More information about the Erp5-report mailing list