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
Labels
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
a6516bb8
Commit
a6516bb8
authored
Jan 09, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
eaaaf1f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+3
-3
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+1
-1
software/ors-amarisoft/ru/xbuildout.py
software/ors-amarisoft/ru/xbuildout.py
+10
-12
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
a6516bb8
...
...
@@ -28,7 +28,7 @@ md5sum = 8c044b28682940fbca62657c16613157
[ru_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/libinstance.jinja2.cfg
md5sum =
202c7efcb4d2387c0e542aed4aa1f2cf
md5sum =
c1b46d5322fdf3c6396d3ac8828ff6e3
[ru_sdr_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/sdr/libinstance.jinja2.cfg
...
...
@@ -80,7 +80,7 @@ md5sum = 2b8b57c5771b2a2203c0e7767e629e55
[ru_xbuildout.py]
_update_hash_filename_ = ru/xbuildout.py
md5sum =
b9aa7356ebccfb1e9d2324106ad88485
md5sum =
d569421cb4ce2f4b999d82582680eb58
[ru_capdo.c]
_update_hash_filename_ = ru/capdo.c
...
...
@@ -88,7 +88,7 @@ md5sum = 52da9fe3a569199e35ad89ae1a44c30e
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
fe0ecccc3be23a8fc5cf85d2278b6e8c
md5sum =
1b2cdab298461bfd6d2bee7ffd753756
[template-ors-enb]
_update_hash_filename_ = instance-ors-enb.jinja2.cfg
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
a6516bb8
# instance-enb implements eNB/gNB service.
{#-
set Q = xbuildout.quote #}
{#- set Q = xbuildout.quote #}
{%- set Q = dumps %}
[buildout]
...
...
software/ors-amarisoft/ru/xbuildout.py
View file @
a6516bb8
...
...
@@ -128,18 +128,16 @@ def _decode(s):
return
out
"""
# quote converts string s into quoted form with all buildout control characters escaped... XXX
# XXX -> pyquote?
def quote(s: str) -> str:
assert isinstance(s, str), type(s)
r = str.__repr__(s) # both str and markupsafe.Markup go as regular str
for c in '$[]
\
n
':
r = r.replace(c, r'
\
x%
02
x' % ord(c))
if r[1:-1] == s:
return s # original string
return '!py!' + r
"""
## quote converts string s into quoted form with all buildout control characters escaped... XXX
## XXX -> pyquote?
#def quote(s: str) -> str:
# assert isinstance(s, str), type(s)
# r = str.__repr__(s) # both str and markupsafe.Markup go as regular str
# for c in '$[]\n':
# r = r.replace(c, r'\x%02x' % ord(c))
# if r[1:-1] == s:
# return s # original string
# 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