From 2ebe1efe492988f824ac6ca38edece21f7e15197 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Wed, 12 May 2010 13:52:25 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35221 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Document.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py index 48ab205081..82e68ac93c 100644 --- a/product/ERP5/Document/Document.py +++ b/product/ERP5/Document/Document.py @@ -62,6 +62,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: """ This class provides a generic API to store in the ZODB -- 2.30.9