Commit 2ebe1efe authored by Nicolas Delaby's avatar Nicolas Delaby

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
parent 1c32b1eb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment