Project

General

Profile

Download (507 Bytes) Statistics
| Branch: | Tag: | Revision:

root / auquotidien / modules / template.py @ af815ab7

1
from wcs.qommon import template
2

    
3
wcs_get_decorate_vars = template.get_decorate_vars
4

    
5

    
6
def get_decorate_vars(body, response, generate_breadcrumb=True, template_context=None, **kwargs):
7
    if template_context and 'form_side' in template_context:
8
        # force rendering as it will put new variables in the context
9
        template_context['form_side'] = template_context['form_side']()
10

    
11
    return wcs_get_decorate_vars(body, response, generate_breadcrumb)
12

    
13

    
14
template.get_decorate_vars = get_decorate_vars
(8-8/8)