This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
auquotidien/auquotidien/modules/template.py

15 lines
507 B
Python

from wcs.qommon import template
wcs_get_decorate_vars = template.get_decorate_vars
def get_decorate_vars(body, response, generate_breadcrumb=True, template_context=None, **kwargs):
if template_context and 'form_side' in template_context:
# force rendering as it will put new variables in the context
template_context['form_side'] = template_context['form_side']()
return wcs_get_decorate_vars(body, response, generate_breadcrumb)
template.get_decorate_vars = get_decorate_vars