Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos
Commits
eaaaf1f0
Commit
eaaaf1f0
authored
Jan 09, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ebcfabab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+3
-1
software/ors-amarisoft/ru/libinstance.jinja2.cfg
software/ors-amarisoft/ru/libinstance.jinja2.cfg
+0
-1
software/ors-amarisoft/ru/xbuildout.py
software/ors-amarisoft/ru/xbuildout.py
+2
-0
No files found.
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
eaaaf1f0
# instance-enb implements eNB/gNB service.
# instance-enb implements eNB/gNB service.
{%- set Q = xbuildout.quote %}
{#- set Q = xbuildout.quote #}
{%- set Q = dumps %}
[buildout]
[buildout]
parts =
parts =
...
...
software/ors-amarisoft/ru/libinstance.jinja2.cfg
View file @
eaaaf1f0
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
{%- set testing = slapparameter_dict.get("testing", False) %}
{%- set testing = slapparameter_dict.get("testing", False) %}
{#- B(name) returns buildout-encoded form of name #}
{#- B(name) returns buildout-encoded form of name #}
{#- XXX Q #}
{%- set B = xbuildout.encode %}
{%- set B = xbuildout.encode %}
{#- part emits new buildout section and registers it into buildout.parts #}
{#- part emits new buildout section and registers it into buildout.parts #}
...
...
software/ors-amarisoft/ru/xbuildout.py
View file @
eaaaf1f0
...
@@ -128,6 +128,7 @@ def _decode(s):
...
@@ -128,6 +128,7 @@ def _decode(s):
return
out
return
out
"""
# quote converts string s into quoted form with all buildout control characters escaped... XXX
# quote converts string s into quoted form with all buildout control characters escaped... XXX
# XXX -> pyquote?
# XXX -> pyquote?
def quote(s: str) -> str:
def quote(s: str) -> str:
...
@@ -138,6 +139,7 @@ def quote(s: str) -> str:
...
@@ -138,6 +139,7 @@ def quote(s: str) -> str:
if r[1:-1] == s:
if r[1:-1] == s:
return s # original string
return s # original string
return '!py!' + r
return '!py!' + r
"""
# ----------------------------------------
# ----------------------------------------
...
...
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