view MoinMoin/constants/ @ 1973:286e315935ae

refactor usage of constants don't import from config module, but from constants.* use uppercase for constant names
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 10 Feb 2013 22:50:21 +0100
parents 78b7a1136984
children 791bdedb0c20
line wrap: on
line source
# Copyright: 2011 MoinMoin:ThomasWaldmann
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.

MoinMoin - contenttype related constants

# Charset - we support only 'utf-8'. While older encodings might work,
# we don't have the resources to test them, and there is no real
# benefit for the user. IMPORTANT: use only lowercase 'utf-8'!
CHARSET = 'utf-8'

# Parser to use mimetype text
PARSER_TEXT_MIMETYPE = ('plain', 'csv', 'rst', 'docbook', 'latex', 'tex', 'html', 'css',
                       'xml', 'python', 'perl', 'php', 'ruby', 'javascript',
                       'cplusplus', 'java', 'pascal', 'diff', 'gettext', 'xslt', 'creole', )

CONTENTTYPE_USER = u'application/x.moin.userprofile'
CONTENTTYPE_DEFAULT = u'application/octet-stream'
CONTENTTYPE_NONEXISTENT = u'application/x-nonexistent'

GROUP_MARKUP_TEXT = 'markup text items'
GROUP_OTHER_TEXT = 'other text items'
GROUP_IMAGE = 'image items'
GROUP_AUDIO = 'audio items'
GROUP_VIDEO = 'video items'
GROUP_DRAWING = 'drawing items'
GROUP_OTHER = 'other items'

DRAWING_EXTENSIONS = ['.tdraw', '.adraw', '.svg', '.png', '.jpg', '.jpeg', '.gif', ]