1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 09:21:54 +00:00

[file encoding] added encoding option & used chardet for Text/Markdown/Sf file

This commit is contained in:
llj
2013-02-24 16:52:10 +08:00
parent 021c97d81b
commit 086c03a068
7 changed files with 102 additions and 22 deletions

View File

@@ -7,7 +7,7 @@ These are referenced from the setting TEMPLATE_CONTEXT_PROCESSORS and used by
RequestContext.
"""
from settings import SEAFILE_VERSION, SITE_TITLE, SITE_NAME, SITE_BASE, \
ENABLE_SIGNUP, MAX_FILE_NAME, USE_PDFJS
ENABLE_SIGNUP, MAX_FILE_NAME, USE_PDFJS, FILE_ENCODING_LIST
try:
from settings import BUSINESS_MODE
except ImportError:
@@ -38,5 +38,6 @@ def base(request):
'enable_signup': ENABLE_SIGNUP,
'max_file_name': MAX_FILE_NAME,
'use_pdfjs': USE_PDFJS,
'file_encoding_list': FILE_ENCODING_LIST,
}