1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

[file encoding] improved code & modified for file_edit & text_diff

This commit is contained in:
llj
2013-02-27 15:19:24 +08:00
parent 3a485e4a73
commit 15d9d69c66
7 changed files with 88 additions and 49 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, FILE_ENCODING_LIST
ENABLE_SIGNUP, MAX_FILE_NAME, USE_PDFJS
try:
from settings import BUSINESS_MODE
except ImportError:
@@ -38,6 +38,5 @@ def base(request):
'enable_signup': ENABLE_SIGNUP,
'max_file_name': MAX_FILE_NAME,
'use_pdfjs': USE_PDFJS,
'file_encoding_list': FILE_ENCODING_LIST,
}