Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
fd5759ff
Commit
fd5759ff
authored
Aug 23, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1a2839ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+5
-3
No files found.
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
fd5759ff
...
@@ -23,11 +23,11 @@
...
@@ -23,11 +23,11 @@
{#- XXX what to return ? #}
{#- XXX what to return ? #}
{%- else %}
{%- else %}
{%- do seen.append(cell_ref) %}
{%- do seen.append(cell_ref) %}
{%- set ru =
cell['ru']
%}
{%- set ru =
J(cell['_'])['ru']
%}
{%- if ru['ru_type'] == 'ru_ref' %}
{%- if ru['ru_type'] == 'ru_ref' %}
{{- ru['ru_ref'] | tojson }}
{{- ru['ru_ref'] | tojson }}
{%- elif ru['ru_type'] == 'ruincell_ref' %}
{%- elif ru['ru_type'] == 'ruincell_ref' %}
{{-
jcell_ru_ref(ru['ruincell_ref'])
}}
{{-
_jcell_ru_ref(ru['ruincell_ref'], seen)
}}
{%- else %}
{%- else %}
{#- ru definition is embedded into cell #}
{#- ru definition is embedded into cell #}
{{- ('_%s_ru' % J(jref_of_shared(cell))) | tojson }}
{{- ('_%s_ru' % J(jref_of_shared(cell))) | tojson }}
...
@@ -72,11 +72,13 @@
...
@@ -72,11 +72,13 @@
{%- endfor %}
{%- endfor %}
{{ print('\nru_dict:') }} {{ pprint(ru_dict) }}
{{ print('\nru_dict:') }} {{ pprint(ru_dict) }}
{{ print('\ncell_dict:') }} {{ pprint(cell_dict) }}
{{ print('\ncell_dict:') }} {{ pprint(cell_dict) }}
{{ print('\n----\n') }}
{#- verify that there is no dangling cell->ru references #}
{#- verify that there is no dangling cell->ru references #}
{%- for _, cell in cell_dict|dictsort %}
{%- for _, cell in cell_dict|dictsort %}
{{ print('_:', _, 'cell:', cell) }}
{%- set ru_ref = J(jcell_ru_ref(cell)) %}
{%- set ru_ref = J(jcell_ru_ref(cell)) %}
{%- if ru_ref not in ru_dict %}
{%- if ru_ref not in ru_dict %}
{%- do error(cell, "referred RU %s does not exist" % ru_ref) %}
{%- do error(cell, "referred RU %s does not exist" % ru_ref) %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment