Commit 159dae4a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b211333e
......@@ -17,13 +17,13 @@
{%- set ref = J(jref_of_shared(slave)) %}
{%- set _ = J(slave['_']) %}
{%- if 'ru_type' in _ %}
{% do ru_dict[ref] = slave %}
{% do ru_dict.update({ref: slave}) %}
{%- elif 'cell_type' in _ %}
{%- do cell_dict[ref] = slave %}
{%- do cell_dict.update({ref: slave}) %}
{%- set ru = cell['ru'] %}
{%- if ru['ru_type'] not in ('ru_ref', 'ruincell_ref') %}
{# embedded ru definition -> expose it as `_<cell_ref>_ru` #}
{%- do ru_dict['_%s_ru' % ref] = ru %}
{%- do ru_dict.update({'_%s_ru' % ref: ru}) %}
{%- endif %}
{% else %}
{% do error(slave, "unknown shared instance type") %}
......@@ -51,7 +51,7 @@
{%- endfor %}
{# XXX what to return ? #}
{%- else %}
{%- seen.append(cell_ref) %}
{%- do seen.append(cell_ref) %}
{%- set ru = cell['ru'] %}
{%- if ru['ru_type'] == 'ru_ref' %}
{{ ru['ru_ref'] | tojson }}
......
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