2012-05-03 02:52:43 +00:00
|
|
|
"""
|
|
|
|
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
|
|
|
|
|
2012-05-30 14:42:21 +00:00
|
|
|
def base(request):
|
2012-05-03 02:52:43 +00:00
|
|
|
"""
|
2012-05-30 14:42:21 +00:00
|
|
|
Add seahub base configure to the context.
|
2012-05-03 02:52:43 +00:00
|
|
|
|
|
|
|
"""
|
2012-05-30 14:42:21 +00:00
|
|
|
return {
|
|
|
|
'seafile_version': settings.SEAFILE_VERSION,
|
2012-06-20 11:39:21 +00:00
|
|
|
'seahub_title': settings.SEAHUB_TITLE,
|
|
|
|
'account_type': settings.ACCOUNT_TYPE,
|
2012-05-30 14:42:21 +00:00
|
|
|
}
|
2012-07-26 09:08:31 +00:00
|
|
|
|