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

Add new repo_file_get file and clean settings.py.

This commit is contained in:
xiez
2012-07-19 11:30:12 +08:00
parent 6eddec46ae
commit ea1b664541
8 changed files with 43 additions and 66 deletions

View File

@@ -69,7 +69,6 @@ MIDDLEWARE_CLASSES = (
'auth.middleware.AuthenticationMiddleware',
'seahub.base.middleware.InfobarMiddleware',
'seahub.subdomain.middleware.SubdomainMiddleware',
# 'seahub.base.middleware.UseridMiddleware',
)
SITE_ROOT_URLCONF = 'seahub.urls'
@@ -147,16 +146,9 @@ FILEEXT_ICON_MAP = {
'default' : 'file-icon-24.png',
}
# File preview
FILE_PREVIEW_MAX_SIZE = 10 * 1024 * 1024
PREVIEW_FILEEXT = {
'Document': ('ac', 'am', 'bat', 'c', 'cc', 'cmake', 'cpp', 'css', 'diff', 'h', 'htm', 'html', 'xhtml', 'java', 'js', 'json', 'less', 'make', 'php', 'properties', 'py', 'rb', 'scala', 'script', 'sh', 'sql', 'txt','text', 'vi', 'vim', 'xml'),
'Image': ('gif', 'jpeg', 'jpg', 'png'),
'SVG':('svg',),
}
# Avatar
AVATAR_STORAGE_DIR = 'avatars'
GROUP_AVATAR_STORAGE_DIR = 'avatars/groups'
@@ -166,11 +158,6 @@ GROUP_AVATAR_DEFAULT_URL = 'avatars/groups/default.png'
AVATAR_MAX_AVATARS_PER_USER = 1
AVATAR_CACHE_TIMEOUT = 0
# Info-bar notification cache
NOTIFICATION_CACHE_TIMEOUT = 0
USER_TOTAL_SPACE = 2 * pow(2,30)
# File upload
FILE_UPLOAD_MAX_MEMORY_SIZE = 0
@@ -240,4 +227,6 @@ else:
LOGIN_URL = SITE_ROOT + 'accounts/login'
USER_TOTAL_SPACE = 2 * pow(2,30)
SEAFILE_VERSION = '0.9.4'