Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
5e26669c
Commit
5e26669c
authored
Mar 07, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Use parameter_xml directly rather them hash
parent
44e98efe
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
24 deletions
+25
-24
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_instance_tree_js.js
..._module/rjs_gadget_erp5_page_slap_add_instance_tree_js.js
+1
-1
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_instance_tree_js.xml
...module/rjs_gadget_erp5_page_slap_add_instance_tree_js.xml
+3
-3
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_js.js
...module/rjs_gadget_erp5_page_slap_instance_tree_view_js.js
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_js.xml
...odule/rjs_gadget_erp5_page_slap_instance_tree_view_js.xml
+3
-3
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.js
...odule/rjs_gadget_erp5_page_slap_test_parameter_form_js.js
+6
-5
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.xml
...dule/rjs_gadget_erp5_page_slap_test_parameter_form_js.xml
+3
-3
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_readonly_parameter_form_js.js
..._gadget_erp5_page_slap_test_readonly_parameter_form_js.js
+4
-4
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_readonly_parameter_form_js.xml
...gadget_erp5_page_slap_test_readonly_parameter_form_js.xml
+3
-3
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_instance_tree_js.js
View file @
5e26669c
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
var
doc
=
result
[
1
],
var
doc
=
result
[
1
],
parameter_dict
=
{
parameter_dict
=
{
'
json_url
'
:
doc
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
json_url
'
:
doc
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
parameter_
hash
'
:
btoa
(
'
<?xml version="1.0" encoding="utf-8" ?><instance/>
'
)
'
parameter_
xml
'
:
'
<?xml version="1.0" encoding="utf-8" ?><instance/>
'
};
};
if
(
options
.
software_type
)
{
if
(
options
.
software_type
)
{
parameter_dict
[
'
softwaretype
'
]
=
options
.
software_type
;
parameter_dict
[
'
softwaretype
'
]
=
options
.
software_type
;
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_instance_tree_js.xml
View file @
5e26669c
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
101
0.44014.55766.17408
</string>
</value>
<value>
<string>
101
3.8728.41822.8550
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -303,7 +303,7 @@
...
@@ -303,7 +303,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
692989933.58
</float>
<float>
1
709839049.13
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_js.js
View file @
5e26669c
...
@@ -231,10 +231,10 @@
...
@@ -231,10 +231,10 @@
'
json_url
'
:
gadget
.
state
.
doc
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
json_url
'
:
gadget
.
state
.
doc
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
softwaretype
'
:
gadget
.
state
.
doc
.
source_reference
,
'
softwaretype
'
:
gadget
.
state
.
doc
.
source_reference
,
'
shared
'
:
gadget
.
state
.
doc
.
root_slave
?
1
:
0
,
'
shared
'
:
gadget
.
state
.
doc
.
root_slave
?
1
:
0
,
'
parameter_
hash
'
:
btoa
(
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
)
'
parameter_
xml
'
:
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
};
};
if
(
gadget
.
state
.
doc
.
text_content
!==
undefined
)
{
if
(
gadget
.
state
.
doc
.
text_content
!==
undefined
)
{
parameter_dict
.
parameter_
hash
=
btoa
(
gadget
.
state
.
doc
.
text_content
)
;
parameter_dict
.
parameter_
xml
=
gadget
.
state
.
doc
.
text_content
;
}
}
return
gadget
.
getSetting
(
"
hateoas_url
"
)
return
gadget
.
getSetting
(
"
hateoas_url
"
)
.
push
(
function
(
url
)
{
.
push
(
function
(
url
)
{
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_js.xml
View file @
5e26669c
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
101
0.44015.51861.27016
</string>
</value>
<value>
<string>
101
3.8728.41822.8550
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
692924255.67
</float>
<float>
1
709839708.45
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.js
View file @
5e26669c
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
]);
]);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
parameter_
hash
,
var
parameter_
xml
,
parameter_dict
,
parameter_dict
,
default_url
;
default_url
;
...
@@ -101,13 +101,14 @@
...
@@ -101,13 +101,14 @@
default_url
=
gadget
.
state
.
url_string
;
default_url
=
gadget
.
state
.
url_string
;
}
}
if
(
gadget
.
state
.
parameter_output
===
undefined
)
{
if
(
gadget
.
state
.
parameter_output
===
undefined
)
{
parameter_
hash
=
btoa
(
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
)
;
parameter_
xml
=
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
;
}
else
{
}
else
{
parameter_
hash
=
btoa
(
gadget
.
state
.
parameter_output
)
;
parameter_
xml
=
gadget
.
state
.
parameter_output
;
}
}
parameter_dict
=
{
parameter_dict
=
{
'
json_url
'
:
gadget
.
state
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
json_url
'
:
gadget
.
state
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
parameter_hash
'
:
parameter_hash
'
parameter_xml
'
:
parameter_xml
,
'
software_type_list
'
:
[]
};
};
if
(
gadget
.
state
.
software_type_list
)
{
if
(
gadget
.
state
.
software_type_list
)
{
parameter_dict
.
software_type_list
=
gadget
.
state
.
software_type_list
.
split
(
'
,
'
);
parameter_dict
.
software_type_list
=
gadget
.
state
.
software_type_list
.
split
(
'
,
'
);
...
@@ -167,7 +168,7 @@
...
@@ -167,7 +168,7 @@
"
your_parameter_hash
"
:
{
"
your_parameter_hash
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
"
Parameters Hash
"
,
"
title
"
:
"
Parameters Hash
"
,
"
default
"
:
parameter_hash
,
"
default
"
:
btoa
(
parameter_xml
)
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
editable
"
:
0
,
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.xml
View file @
5e26669c
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
101
0.42602.14389.54903
</string>
</value>
<value>
<string>
101
3.8728.41822.8550
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -301,7 +301,7 @@
...
@@ -301,7 +301,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
692903464.84
</float>
<float>
1
709840043.97
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_readonly_parameter_form_js.js
View file @
5e26669c
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
]);
]);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
parameter_
hash
,
var
parameter_
xml
,
parameter_dict
,
parameter_dict
,
default_url
;
default_url
;
...
@@ -107,13 +107,13 @@
...
@@ -107,13 +107,13 @@
default_url
=
gadget
.
state
.
url_string
;
default_url
=
gadget
.
state
.
url_string
;
}
}
if
(
gadget
.
state
.
parameter_output
===
undefined
)
{
if
(
gadget
.
state
.
parameter_output
===
undefined
)
{
parameter_
hash
=
btoa
(
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
)
;
parameter_
xml
=
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
;
}
else
{
}
else
{
parameter_
hash
=
btoa
(
gadget
.
state
.
parameter_output
)
;
parameter_
xml
=
gadget
.
state
.
parameter_output
;
}
}
parameter_dict
=
{
parameter_dict
=
{
'
json_url
'
:
gadget
.
state
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
json_url
'
:
gadget
.
state
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
parameter_
hash
'
:
parameter_hash
,
'
parameter_
xml
'
:
parameter_xml
,
'
softwaretype
'
:
gadget
.
state
.
software_type
,
'
softwaretype
'
:
gadget
.
state
.
software_type
,
'
restricted_softwaretype
'
:
false
'
restricted_softwaretype
'
:
false
};
};
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_readonly_parameter_form_js.xml
View file @
5e26669c
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
101
0.44012.38164.19575
</string>
</value>
<value>
<string>
101
5.4369.46609.36078
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -301,7 +301,7 @@
...
@@ -301,7 +301,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
692982452.93
</float>
<float>
1
709839844.0
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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