1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-30 00:42:53 +00:00
seahub/organizations/context_processors.py

13 lines
339 B
Python
Raw Normal View History

from seahub.utils import get_cur_ctx
2012-07-26 09:08:31 +00:00
def org(request):
"""
Add org info and base template that html page will extends to context.
"""
ctx_dict = get_cur_ctx(request)
base_template = ctx_dict['base_template']
org_dict = ctx_dict['org_dict']
return {'base_template': base_template,
'org': org_dict}