comparison piecrust/admin/views/__init__.py @ 920:5b4c02ed9bb2

serve: Fix error admin panel error message page.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 29 Sep 2017 08:45:06 -0700
parents 2b0fa2e4c12f
children 7ecb946bfafd
comparison
equal deleted inserted replaced
919:725744a4c42d 920:5b4c02ed9bb2
22 22
23 def with_menu_context(context=None): 23 def with_menu_context(context=None):
24 if context is None: 24 if context is None:
25 context = {} 25 context = {}
26 context['menu'] = get_menu_context() 26 context['menu'] = get_menu_context()
27 context['base_url'] = current_app.config['FOODTRUCK_URL_PREFIX'] 27 with_base_data(context)
28 return context 28 return context
29 29
30
31 def with_base_data(context=None):
32 if context is None:
33 context = {}
34 context['base_url'] = current_app.config['FOODTRUCK_URL_PREFIX']