Commit 1a2839ad authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1d56d836
......@@ -71,6 +71,10 @@
{%- endif %}
{%- endfor %}
{{ print('\nru_dict:') }} {{ pprint(ru_dict) }}
{{ print('\ncell_dict:') }} {{ pprint(cell_dict) }}
{#- verify that there is no dangling cell->ru references #}
{%- for _, cell in cell_dict|dictsort %}
{%- set ru_ref = J(jcell_ru_ref(cell)) %}
......
import json, copy
import json, copy, sys, pprint
config = "enb"
json_params_empty = """{
......@@ -345,9 +345,20 @@ class Recipe():
else:
super(Recipe, self).update()
def _print(*argv):
print(*argv, file=sys.stderr)
def _pprint(obj):
pprint.pprint(obj, sys.stderr)
r = Recipe()
ctx = json.loads(json_params)
ctx.update({'json_module': json})
ctx.update({
'json_module': json,
'print': _print,
'pprint': _pprint,
})
r._init("recipe", {
'extensions': 'jinja2.ext.do',
'url': 'config/{}.jinja2.cfg'.format(config),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment