1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-28 07:57:50 +00:00
seahub/base/context_processors.py
xiez c5d80ee8e7 Add USE_ORG in settings.
NOTE: Org feature is not enabled by default, in order to use org, need set USE_ORG to True in settings or local_settings.
2012-08-01 11:08:56 +08:00

22 lines
579 B
Python

"""
A set of request processors that return dictionaries to be merged into a
template context. Each function takes the request object as its only parameter
and returns a dictionary to add to the context.
These are referenced from the setting TEMPLATE_CONTEXT_PROCESSORS and used by
RequestContext.
"""
import settings
def base(request):
"""
Add seahub base configure to the context.
"""
return {
'seafile_version': settings.SEAFILE_VERSION,
'seahub_title': settings.SEAHUB_TITLE,
# 'account_type': settings.ACCOUNT_TYPE,
}