organisation-dashboard

This commit is contained in:
chrisw
2018-02-13 14:49:03 +00:00
parent 41425481b3
commit 96b66829a1
9 changed files with 84 additions and 27 deletions

View File

@@ -84,6 +84,8 @@ billing_api_client = BillingAPIClient()
# The current service attached to the request stack.
current_service = LocalProxy(partial(_lookup_req_object, 'service'))
# The current organisation attached to the request stack.
current_organisation = LocalProxy(partial(_lookup_req_object, 'organisation'))
def create_app(application):
setup_commands(application)
@@ -156,6 +158,10 @@ def init_app(application):
def _attach_current_service():
return {'current_service': current_service}
@application.context_processor
def _attach_current_organisation():
return {'current_org': current_organisation}
@application.context_processor
def _attach_current_user():
return{'current_user': current_user}