""" 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. """ from settings import SEAFILE_VERSION from settings import SEAHUB_TITLE def base(request): """ Add seahub base configure to the context. """ return { 'seafile_version': SEAFILE_VERSION, 'seahub_title': SEAHUB_TITLE, 'cloud_mode': request.cloud_mode, # 'account_type': settings.ACCOUNT_TYPE, }