mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-26 23:17:58 +00:00
17 lines
460 B
Python
17 lines
460 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 version(request):
|
|
"""
|
|
Add seafile version to the context.
|
|
|
|
"""
|
|
return {'seafile_version': settings.SEAFILE_VERSION}
|