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
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
Carlos Ramos Carreño
slapos.core
Commits
369e8d56
Commit
369e8d56
authored
Aug 30, 2023
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Update status and parameter gadget to rely on renderjs_extra
See merge request
nexedi/slapos.core!569
parents
df2138b9
28dbb885
Changes
63
Hide whitespace changes
Inline
Side-by-side
Showing
63 changed files
with
391 additions
and
765 deletions
+391
-765
master/bt5/slapos_cloud/ActionTemplateItem/portal_types/Instance%20Tree/view_editor.xml
...TemplateItem/portal_types/Instance%20Tree/view_editor.xml
+3
-3
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Base_getParameterEditorDict.py
.../portal_skins/slapos_cloud/Base_getParameterEditorDict.py
+0
-16
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputeNode_viewCurrentUsageReport/my_busy_compute_partition_list_status.xml
...rentUsageReport/my_busy_compute_partition_list_status.xml
+5
-5
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/InstanceTree_requestParameterChange.py
...skins/slapos_cloud/InstanceTree_requestParameterChange.py
+2
-0
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/InstanceTree_requestParameterChange.xml
...kins/slapos_cloud/InstanceTree_requestParameterChange.xml
+2
-2
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/InstanceTree_viewEditor.xml
...tem/portal_skins/slapos_cloud/InstanceTree_viewEditor.xml
+4
-4
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/InstanceTree_viewEditor/your_instance_xml.xml
...lapos_cloud/InstanceTree_viewEditor/your_instance_xml.xml
+12
-8
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/gadget_erp5_page_slap_parameter_form.js.js
...s/slapos_cloud/gadget_erp5_page_slap_parameter_form.js.js
+12
-23
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/gadget_slapos_status.css.css
...em/portal_skins/slapos_cloud/gadget_slapos_status.css.css
+0
-6
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/gadget_slapos_status.js.js
...Item/portal_skins/slapos_cloud/gadget_slapos_status.js.js
+15
-25
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/InstanceTree_viewStatus/listbox_status.xml
...crm_monitoring/InstanceTree_viewStatus/listbox_status.xml
+5
-5
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
...Item/portal_components/test.erp5.testSlapOSCodingStyle.py
+1
-1
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_css.css
...lateItem/web_page_module/rjs_gadget_erp5_page_map_css.css
+4
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_css.xml
...lateItem/web_page_module/rjs_gadget_erp5_page_map_css.xml
+5
-3
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_html.html
...teItem/web_page_module/rjs_gadget_erp5_page_map_html.html
+2
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_html.xml
...ateItem/web_page_module/rjs_gadget_erp5_page_map_html.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_js.js
...mplateItem/web_page_module/rjs_gadget_erp5_page_map_js.js
+16
-70
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_js.xml
...plateItem/web_page_module/rjs_gadget_erp5_page_map_js.xml
+2
-2
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
+7
-8
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
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_list_js.js
..._module/rjs_gadget_erp5_page_slap_compute_node_list_js.js
+14
-12
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_list_js.xml
...module/rjs_gadget_erp5_page_slap_compute_node_list_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_view_js.js
..._module/rjs_gadget_erp5_page_slap_compute_node_view_js.js
+18
-21
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_view_js.xml
...module/rjs_gadget_erp5_page_slap_compute_node_view_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_network_view_js.js
...ule/rjs_gadget_erp5_page_slap_computer_network_view_js.js
+17
-17
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_network_view_js.xml
...le/rjs_gadget_erp5_page_slap_computer_network_view_js.xml
+2
-2
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
+25
-18
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
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_network_list_js.js
..._page_module/rjs_gadget_erp5_page_slap_network_list_js.js
+11
-8
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_network_list_js.xml
...page_module/rjs_gadget_erp5_page_slap_network_list_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_service_list_js.js
..._page_module/rjs_gadget_erp5_page_slap_service_list_js.js
+12
-9
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_service_list_js.xml
...page_module/rjs_gadget_erp5_page_slap_service_list_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_site_list_js.js
...web_page_module/rjs_gadget_erp5_page_slap_site_list_js.js
+9
-9
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_site_list_js.xml
...eb_page_module/rjs_gadget_erp5_page_slap_site_list_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_site_view_js.js
...web_page_module/rjs_gadget_erp5_page_slap_site_view_js.js
+17
-10
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_site_view_js.xml
...eb_page_module/rjs_gadget_erp5_page_slap_site_view_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_software_installation_view_js.js
...js_gadget_erp5_page_slap_software_installation_view_js.js
+6
-5
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_software_installation_view_js.xml
...s_gadget_erp5_page_slap_software_installation_view_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_software_instance_view_js.js
...le/rjs_gadget_erp5_page_slap_software_instance_view_js.js
+8
-8
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_software_instance_view_js.xml
...e/rjs_gadget_erp5_page_slap_software_instance_view_js.xml
+2
-2
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
+9
-10
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
+2
-2
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
+11
-12
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
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slapos_js.js
...ateItem/web_page_module/rjs_gadget_erp5_page_slapos_js.js
+8
-5
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slapos_js.xml
...teItem/web_page_module/rjs_gadget_erp5_page_slapos_js.xml
+2
-2
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/ComputeNode_getNewsDict.py
...al_skins/slapos_hal_json_style/ComputeNode_getNewsDict.py
+0
-5
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/ComputeNode_getNewsDict.xml
...l_skins/slapos_hal_json_style/ComputeNode_getNewsDict.xml
+0
-70
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/ComputeNode_viewAsHateoas/my_news.xml
...apos_hal_json_style/ComputeNode_viewAsHateoas/my_news.xml
+1
-1
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Document_getNewsDict.py
...ortal_skins/slapos_hal_json_style/Document_getNewsDict.py
+1
-1
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_getNewsDict.py
...slapos_hal_json_style/SoftwareInstallation_getNewsDict.py
+0
-5
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_getNewsDict.xml
...lapos_hal_json_style/SoftwareInstallation_getNewsDict.xml
+0
-62
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_viewAsHateoas/my_news.xml
...json_style/SoftwareInstallation_viewAsHateoas/my_news.xml
+1
-1
master/bt5/slapos_jio/TestTemplateItem/portal_components/test.erp5.testSlapOSHalJsonStyleSkins.py
...ortal_components/test.erp5.testSlapOSHalJsonStyleSkins.py
+0
-195
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSNetwork.zpt
...eItem/portal_tests/slaposjs_zuite/testSlapOSJSNetwork.zpt
+6
-6
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServer.zpt
...teItem/portal_tests/slaposjs_zuite/testSlapOSJSServer.zpt
+8
-8
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServerUpgradeDecision.zpt
...ests/slaposjs_zuite/testSlapOSJSServerUpgradeDecision.zpt
+4
-4
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSService.zpt
...eItem/portal_tests/slaposjs_zuite/testSlapOSJSService.zpt
+8
-8
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServiceFastInputSlave.zpt
...ests/slaposjs_zuite/testSlapOSJSServiceFastInputSlave.zpt
+14
-14
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServiceSlave.zpt
.../portal_tests/slaposjs_zuite/testSlapOSJSServiceSlave.zpt
+18
-18
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSSite.zpt
...lateItem/portal_tests/slaposjs_zuite/testSlapOSJSSite.zpt
+10
-10
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSTestParameterEditorPostRawJSON.zpt
...osjs_zuite/testSlapOSJSTestParameterEditorPostRawJSON.zpt
+5
-1
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSTestParameterEditorXMLRequired.zpt
...osjs_zuite/testSlapOSJSTestParameterEditorXMLRequired.zpt
+23
-1
No files found.
master/bt5/slapos_cloud/ActionTemplateItem/portal_types/Instance%20Tree/view_editor.xml
View file @
369e8d56
...
@@ -16,13 +16,13 @@
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<key>
<string>
categories
</string>
</key>
<value>
<value>
<tuple>
<tuple>
<string>
action_type/object_
view
</string>
<string>
action_type/object_
action
</string>
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
category
</string>
</key>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_
view
</string>
</value>
<value>
<string>
object_
action
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
condition
</string>
</key>
<key>
<string>
condition
</string>
</key>
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Parameter Editor
</string>
</value>
<value>
<string>
Edit Parameters
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
visible
</string>
</key>
<key>
<string>
visible
</string>
</key>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Base_getParameterEditorDict.py
deleted
100644 → 0
View file @
df2138b9
import
base64
text_content
=
context
.
getTextContent
()
if
context
.
getTextContent
()
is
None
:
text_content
=
'<?xml version="1.0" encoding="utf-8" ?><instance></instance>'
parameter_dict
=
{
'parameter'
:
{
'json_url'
:
"."
.
join
([
context
.
getUrlString
(),
"json"
]),
'softwaretype'
:
context
.
getSourceReference
(),
'shared'
:
context
.
getRootSlave
(),
'parameter_hash'
:
base64
.
b64encode
(
text_content
)
}
}
import
json
return
json
.
dumps
(
parameter_dict
)
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputeNode_viewCurrentUsageReport/my_busy_compute_partition_list_status.xml
View file @
369e8d56
...
@@ -114,9 +114,7 @@
...
@@ -114,9 +114,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
default
</string>
</key>
<key>
<string>
default
</string>
</key>
<value>
<value>
<string></string>
</value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -152,7 +150,9 @@
...
@@ -152,7 +150,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<string></string>
</value>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python:
{"result": cell.getAggregateRelatedValue(portal_type="Software Instance").getAccessStatus()}
</string>
</value>
<value>
<string>
python:
[(\'jio_key\', cell.getAggregateRelated(portal_type="Software Instance")), (\'result\', cell.getAggregateRelatedValue(portal_type="Software Instance").getAccessStatus())]
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/InstanceTree_requestParameterChange.py
0 → 100644
View file @
369e8d56
context
.
InstanceTree_requestPerson
(
instance_xml
=
text_content
)
return
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/
Base_getParameterEditorDict
.xml
→
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/
InstanceTree_requestParameterChange
.xml
View file @
369e8d56
...
@@ -50,11 +50,11 @@
...
@@ -50,11 +50,11 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
text_content, **kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_getParameterEditorDict
</string>
</value>
<value>
<string>
InstanceTree_requestParameterChange
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/InstanceTree_viewEditor.xml
View file @
369e8d56
...
@@ -39,11 +39,11 @@
...
@@ -39,11 +39,11 @@
</item>
</item>
<item>
<item>
<key>
<string>
action
</string>
</key>
<key>
<string>
action
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
InstanceTree_requestParameterChange
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
action_title
</string>
</key>
<key>
<string>
action_title
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
Save
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<key>
<string>
bottom
</string>
</key>
<key>
<string>
bottom
</string>
</key>
<value>
<value>
<list>
<list>
<string>
my_text_content
</string>
<string>
your_instance_xml
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
pt
</string>
</key>
<key>
<string>
pt
</string>
</key>
<value>
<string>
form_
view
</string>
</value>
<value>
<string>
form_
dialog
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
row_length
</string>
</key>
<key>
<string>
row_length
</string>
</key>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/InstanceTree_viewEditor/
my_text_content
.xml
→
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/InstanceTree_viewEditor/
your_instance_xml
.xml
View file @
369e8d56
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_text_content
</string>
</value>
<value>
<string>
your_instance_xml
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
message_values
</string>
</key>
<key>
<string>
message_values
</string>
</key>
...
@@ -114,9 +114,7 @@
...
@@ -114,9 +114,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
default
</string>
</key>
<key>
<string>
default
</string>
</key>
<value>
<value>
<string></string>
</value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -152,7 +150,9 @@
...
@@ -152,7 +150,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<string></string>
</value>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
editable
</string>
</key>
<key>
<string>
editable
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
1
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
enabled
</string>
</key>
<key>
<string>
enabled
</string>
</key>
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
my_text_content
</string>
</value>
<value>
<string>
Parameter
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
<key>
<string>
validator_field_id
</string>
</key>
...
@@ -253,7 +253,11 @@
...
@@ -253,7 +253,11 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string>
here/Base_getParameterEditorDict
</string>
</value>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
python: [(\'json_url\', context.getUrlString().split("?")[0] + ".json"), (\'softwaretype\', context.getSourceReference("")), (\'shared\', context.getRootSlave()), (\'parameter_xml\', context.getTextContent(\'<?xml version="1.0" encoding="utf-8" ?>
<instance></instance>
\'))]
]]>
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/gadget_erp5_page_slap_parameter_form.js.js
View file @
369e8d56
...
@@ -504,35 +504,24 @@
...
@@ -504,35 +504,24 @@
.
declareMethod
(
'
render
'
,
function
(
options
)
{
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
restricted_softwaretype
=
false
,
var
restricted_softwaretype
=
false
,
software_type_list
=
[],
software_type_list
=
[],
parameter_dict
,
parameter_hash
=
options
.
parameter_hash
,
parameter_hash
,
// XXX Do we directly get parameter_xml parameter?
parameter_xml
;
parameter_xml
=
options
.
parameter_xml
;
if
((
options
.
value
!==
undefined
)
&&
(
typeof
options
.
value
===
"
string
"
))
{
parameter_dict
=
JSON
.
parse
(
options
.
value
).
parameter
}
else
{
parameter_dict
=
options
.
value
.
parameter
;
}
parameter_hash
=
parameter_dict
.
parameter_hash
,
// XXX Do we directly get parameter_xml parameter?
parameter_xml
=
parameter_dict
.
parameter_xml
;
if
(
parameter_hash
!==
undefined
)
{
if
(
parameter_hash
!==
undefined
)
{
// A JSON where provided via gadgetfield
// A JSON where provided via gadgetfield
parameter_xml
=
atob
(
parameter_hash
);
parameter_xml
=
atob
(
parameter_hash
);
}
}
if
(
parameter_dict
.
software_type_list
!==
undefined
)
{
if
(
options
.
software_type_list
!==
undefined
)
{
software_type_list
=
parameter_dict
.
software_type_list
;
software_type_list
=
options
.
software_type_list
;
}
}
if
(
parameter_dict
.
softwaretype
!==
undefined
)
{
if
(
options
.
softwaretype
!==
undefined
)
{
restricted_softwaretype
=
true
;
restricted_softwaretype
=
true
;
// exceptional situation where the default item must be in
// exceptional situation where the default item must be in
// the list.
// the list.
software_type_list
.
push
(
parameter_dict
.
softwaretype
);
software_type_list
.
push
(
options
.
softwaretype
);
}
}
return
this
.
changeState
({
return
this
.
changeState
({
...
@@ -540,13 +529,13 @@
...
@@ -540,13 +529,13 @@
// hidden: options.hidden,
// hidden: options.hidden,
// key: options.key,
// key: options.key,
serialisation
:
options
.
serialisation
,
serialisation
:
options
.
serialisation
,
json_url
:
parameter_dict
.
json_url
,
json_url
:
options
.
json_url
,
parameter_xml
:
parameter_xml
,
parameter_xml
:
parameter_xml
,
restricted_softwaretype
:
restricted_softwaretype
,
restricted_softwaretype
:
restricted_softwaretype
,
shared
:
parameter_dict
.
shared
,
softwaretype
:
parameter_dict
.
softwaretype
,
software_type_list
:
software_type_list
,
software_type_list
:
software_type_list
,
softwareindex
:
parameter_dict
.
softwareindex
,
shared
:
options
.
shared
,
softwaretype
:
options
.
softwaretype
,
softwareindex
:
options
.
softwareindex
,
editable
:
options
.
editable
,
editable
:
options
.
editable
,
// Force refresh in any case
// Force refresh in any case
render_timestamp
:
new
Date
().
getTime
()
render_timestamp
:
new
Date
().
getTime
()
...
@@ -654,4 +643,4 @@
...
@@ -654,4 +643,4 @@
},
{
mutex
:
'
statechange
'
});
},
{
mutex
:
'
statechange
'
});
}(
window
,
rJS
,
XMLSerializer
,
DOMParser
,
vkbeautify
,
}(
window
,
rJS
,
XMLSerializer
,
DOMParser
,
vkbeautify
,
domsugar
,
Boolean
,
URI
));
domsugar
,
Boolean
,
URI
));
\ No newline at end of file
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/gadget_slapos_status.css.css
View file @
369e8d56
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
.ui-btn-ok
:hover
a
{
.ui-btn-ok
:hover
a
{
color
:
white
!important
;
color
:
white
!important
;
background
:
green
!important
;
background
:
green
!important
;
cursor
:
default
;
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -53,7 +52,6 @@
...
@@ -53,7 +52,6 @@
.ui-btn-warning
:hover
a
{
.ui-btn-warning
:hover
a
{
color
:
white
!important
;
color
:
white
!important
;
background
:
#f0ad4e
!important
;
background
:
#f0ad4e
!important
;
cursor
:
default
;
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -65,7 +63,6 @@
...
@@ -65,7 +63,6 @@
.ui-btn-error
:hover
a
{
.ui-btn-error
:hover
a
{
color
:
white
!important
;
color
:
white
!important
;
background
:
red
!important
;
background
:
red
!important
;
cursor
:
default
;
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -77,7 +74,6 @@
...
@@ -77,7 +74,6 @@
.ui-btn-no-data
:hover
a
{
.ui-btn-no-data
:hover
a
{
color
:
grey
!important
;
color
:
grey
!important
;
background
:
grey
!important
;
background
:
grey
!important
;
cursor
:
default
;
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -89,7 +85,6 @@
...
@@ -89,7 +85,6 @@
.ui-btn-color-white
:hover
a
{
.ui-btn-color-white
:hover
a
{
color
:
white
!important
;
color
:
white
!important
;
background
:
grey
!important
;
background
:
grey
!important
;
cursor
:
default
;
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -101,7 +96,6 @@
...
@@ -101,7 +96,6 @@
.ui-btn-white
:active
a
,
.ui-btn-white
:active
a
,
.ui-btn-white
:hover
a
{
.ui-btn-white
:hover
a
{
background
:
white
!important
;
background
:
white
!important
;
cursor
:
default
;
text-align
:
center
;
text-align
:
center
;
}
}
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/gadget_slapos_status.js.js
View file @
369e8d56
/*globals console, window, rJS, domsugar
, JSON
*/
/*globals console, window, rJS, domsugar */
/*jslint indent: 2, nomen: true, maxlen: 80 */
/*jslint indent: 2, nomen: true, maxlen: 80 */
(
function
(
window
,
rJS
,
domsugar
,
JSON
)
{
(
function
(
window
,
rJS
,
domsugar
)
{
"
use strict
"
;
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
var
gadget_klass
=
rJS
(
window
);
...
@@ -210,7 +210,8 @@
...
@@ -210,7 +210,8 @@
{
{
"
class
"
:
"
ui-bar ui-corner-all first-child
"
+
status_class
"
class
"
:
"
ui-bar ui-corner-all first-child
"
+
status_class
},
[
},
[
domsugar
(
"
a
"
,
main_link_configuration_dict
)
domsugar
(
main_link_configuration_dict
.
href
?
"
a
"
:
"
span
"
,
main_link_configuration_dict
)
]);
]);
return
gadget
;
return
gadget
;
}
}
...
@@ -221,33 +222,22 @@
...
@@ -221,33 +222,22 @@
return
{};
return
{};
})
})
.
onLoop
(
function
()
{
var
gadget
=
this
;
if
(
typeof
gadget
.
state
.
jio_key
===
'
string
'
&&
gadget
.
state
.
jio_key
!==
''
)
{
return
gadget
.
jio_get
(
gadget
.
state
.
jio_key
)
.
push
(
function
(
result
)
{
var
state_dict
=
result
.
news
||
{};
state_dict
.
jio_key
=
gadget
.
state
.
jio_key
;
return
gadget
.
changeState
(
state_dict
);
});
}
throw
new
Error
(
'
jio_key dont contains a proper value:
'
+
JSON
.
stringify
(
gadget
.
state
.
jio_key
)
);
},
300000
)
.
onStateChange
(
function
()
{
.
onStateChange
(
function
()
{
return
getStatus
(
this
,
this
.
state
);
return
getStatus
(
this
,
this
.
state
);
})
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
(
options
)
{
// Save will force the gadget to be updated so
// crash as soon as possible to detect wrong configuration
// result is empty.
if
(
!
(
options
.
hasOwnProperty
(
'
jio_key
'
)
&&
var
state_dict
=
options
.
value
.
result
||
{};
options
.
hasOwnProperty
(
'
result
'
)))
{
state_dict
.
jio_key
=
options
.
value
.
jio_key
;
throw
new
Error
(
'
status gadget did not receive jio_key and result values
'
);
}
var
state_dict
=
options
.
result
||
{};
state_dict
.
jio_key
=
options
.
jio_key
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
});
});
}(
window
,
rJS
,
domsugar
,
JSON
));
\ No newline at end of file
}(
window
,
rJS
,
domsugar
));
\ No newline at end of file
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/InstanceTree_viewStatus/listbox_status.xml
View file @
369e8d56
...
@@ -114,9 +114,7 @@
...
@@ -114,9 +114,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
default
</string>
</key>
<key>
<string>
default
</string>
</key>
<value>
<value>
<string></string>
</value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -152,7 +150,9 @@
...
@@ -152,7 +150,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<string></string>
</value>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python:
{"result": cell.getAccessStatus()}
</string>
</value>
<value>
<string>
python:
[(\'jio_key\', cell.getRelativeUrl()), (\'result\', cell.getAccessStatus())]
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
View file @
369e8d56
...
@@ -102,6 +102,7 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
...
@@ -102,6 +102,7 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
'slapos_cloud/InstanceTree_requestDestroy'
,
'slapos_cloud/InstanceTree_requestDestroy'
,
'slapos_cloud/InstanceTree_requestStart'
,
'slapos_cloud/InstanceTree_requestStart'
,
'slapos_cloud/InstanceTree_requestStop'
,
'slapos_cloud/InstanceTree_requestStop'
,
'slapos_cloud/InstanceTree_requestParameterChange'
,
'slapos_cloud/Organisation_afterClone'
,
'slapos_cloud/Organisation_afterClone'
,
'slapos_cloud/Organisation_init'
,
'slapos_cloud/Organisation_init'
,
'slapos_cloud/Person_findPartition'
,
'slapos_cloud/Person_findPartition'
,
...
@@ -124,7 +125,6 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
...
@@ -124,7 +125,6 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
'slapos_cloud/SoftwareInstance_viewRenameAndRequestDestroyAction'
,
'slapos_cloud/SoftwareInstance_viewRenameAndRequestDestroyAction'
,
'slapos_cloud/Base_getSupportRequestInProgress'
,
'slapos_cloud/Base_getSupportRequestInProgress'
,
'slapos_cloud/SoftwareInstance_checkDuplicationOnInstanceTreeConsistency'
,
'slapos_cloud/SoftwareInstance_checkDuplicationOnInstanceTreeConsistency'
,
'slapos_cloud/Base_getParameterEditorDict'
,
'slapos_cloud/ComputerNetwork_getRelatedSoftwareReleaseList'
,
'slapos_cloud/ComputerNetwork_getRelatedSoftwareReleaseList'
,
'slapos_crm_monitoring/ComputeNode_checkInstanceOnCloseAllocation'
,
'slapos_crm_monitoring/ComputeNode_checkInstanceOnCloseAllocation'
,
'slapos_crm_monitoring/SiteMessage_setSlapOSUserSourceAndDestinatationList'
,
'slapos_crm_monitoring/SiteMessage_setSlapOSUserSourceAndDestinatationList'
,
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_css.css
View file @
369e8d56
.sensor-status
{
min-width
:
210px
;
}
/* --------------------- CUSTOM MAP ----------------------- */
/* --------------------- CUSTOM MAP ----------------------- */
.custom-map-wrap
{
.custom-map-wrap
{
position
:
relative
;
position
:
relative
;
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_css.xml
View file @
369e8d56
...
@@ -71,7 +71,9 @@
...
@@ -71,7 +71,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
content_type
</string>
</key>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/css
</string>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
...
@@ -246,7 +248,7 @@
...
@@ -246,7 +248,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
964.17264.3291.60876
</string>
</value>
<value>
<string>
1006.58340.40727.23620
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -266,7 +268,7 @@
...
@@ -266,7 +268,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
513789742.97
</float>
<float>
1
693252894.23
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_html.html
View file @
369e8d56
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
<!-- renderjs -->
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"domsugar.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<!-- custom script -->
<script
src=
"leaflet.js"
type=
"text/javascript"
></script>
<script
src=
"leaflet.js"
type=
"text/javascript"
></script>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_html.xml
View file @
369e8d56
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.22055.19881.8430
</string>
</value>
<value>
<string>
1009.49086.48551.49459
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
502452463.01
</float>
<float>
1
693252925.17
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_js.js
View file @
369e8d56
/*jslint nomen: true, maxlen:200, indent:2*/
/*jslint nomen: true, maxlen:200, indent:2*/
/*global window,
document, rJS, console, RSVP, L, $, Image
*/
/*global window,
rJS, console, RSVP, L, Image, domsugar
*/
(
function
(
window
,
document
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
L
,
domsugar
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
.
ready
(
function
(
g
)
{
.
ready
(
function
(
g
)
{
g
.
props
=
{};
g
.
props
=
{};
})
.
ready
(
function
(
g
)
{
g
.
props
.
deferred
=
new
RSVP
.
defer
();
g
.
props
.
deferred
=
new
RSVP
.
defer
();
})
})
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
.
declareAcquiredMethod
(
"
notifyChange
"
,
"
notifyChange
"
)
.
declareAcquiredMethod
(
"
notifyChange
"
,
"
notifyChange
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
...
@@ -57,31 +49,12 @@
...
@@ -57,31 +49,12 @@
return
gadget
.
props
.
deferred
.
resolve
();
return
gadget
.
props
.
deferred
.
resolve
();
});
});
})
})
.
declareMethod
(
'
getContent
'
,
function
(
options
)
{
var
gadget
=
this
,
result
=
[],
tmp
,
i
;
for
(
i
=
0
;
i
<
gadget
.
props
.
new_marker_list
.
length
;
i
+=
1
)
{
tmp
=
gadget
.
props
.
new_marker_list
[
i
].
getLatLng
();
result
.
push
({
latitude
:
tmp
.
lat
,
longitude
:
tmp
.
lng
});
}
return
result
;
})
.
declareService
(
function
()
{
.
declareService
(
function
()
{
var
gadget
=
this
,
var
gadget
=
this
,
map_element
,
latitude
,
longitude
,
zoom
,
marker_list
,
marker_list
,
new_marker_list
=
[],
new_marker_list
=
[],
marker_link
,
marker_label
,
marker_label
,
marker_space
,
marker_monitor_link
,
group
,
group
,
redIcon
,
map
,
map
,
osmUrl
=
'
https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
'
,
osmUrl
=
'
https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
'
,
osm
,
osm
,
...
@@ -91,7 +64,6 @@
...
@@ -91,7 +64,6 @@
'
Imagery © <a href="http://mapbox.com">Mapbox</a>
'
,
'
Imagery © <a href="http://mapbox.com">Mapbox</a>
'
,
marker
,
marker
,
marker_options
=
{},
marker_options
=
{},
queue
,
m
,
m
,
i
,
i
,
bounds
,
bounds
,
...
@@ -109,24 +81,21 @@
...
@@ -109,24 +81,21 @@
return
gadget
.
props
.
deferred
.
promise
;
return
gadget
.
props
.
deferred
.
promise
;
})
})
.
push
(
function
()
{
.
push
(
function
()
{
var
l
=
[]
,
var
l
=
[]
;
marker_list
=
gadget
.
options
.
marker_list
||
[];
marker_list
=
gadget
.
options
.
marker_list
||
[];
for
(
i
=
0
;
i
<
marker_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
marker_list
.
length
;
i
+=
1
)
{
l
.
push
(
gadget
.
getUrlFor
({
command
:
"
change
"
,
l
.
push
(
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
jio_key
:
marker_list
[
i
].
jio_key
,
options
:
{
jio_key
:
marker_list
[
i
].
jio_key
,
page
:
"
slap_controller
"
}}));
page
:
"
slap_controller
"
}}));
}
}
l
.
push
(
gadget
.
getSetting
(
"
hateoas_url
"
));
return
RSVP
.
all
(
l
);
return
RSVP
.
all
(
l
);
})
})
.
push
(
function
(
url_list
)
{
.
push
(
function
(
url_list
)
{
var
hateoas_url
=
url_list
.
pop
();
var
map_element
=
gadget
.
element
.
querySelector
(
"
.map
"
),
map_element
=
gadget
.
props
.
element
.
querySelector
(
"
.map
"
),
latitude
=
gadget
.
options
.
doc
.
latitude
||
0
,
latitude
=
gadget
.
options
.
doc
.
latitude
||
0
,
longitude
=
gadget
.
options
.
doc
.
longitude
||
0
,
longitude
=
gadget
.
options
.
doc
.
longitude
||
0
,
zoom
=
gadget
.
options
.
zoom
||
0
,
zoom
=
gadget
.
options
.
zoom
||
0
,
redIcon
=
L
.
icon
({
iconUrl
:
"
hateoas/marker-icon-mod-100-70-10.png
"
,
marker_list
=
gadget
.
options
.
marker_list
||
[];
redIcon
=
L
.
icon
({
iconUrl
:
"
hateoas/marker-icon-mod-100-70-10.png
"
,
shadowUrl
:
"
hateoas/marker-shadow.png
"
,
shadowUrl
:
"
hateoas/marker-shadow.png
"
,
iconSize
:
[
25
,
41
],
iconSize
:
[
25
,
41
],
iconAnchor
:
[
12
,
41
],
iconAnchor
:
[
12
,
41
],
...
@@ -152,27 +121,9 @@
...
@@ -152,27 +121,9 @@
for
(
i
=
0
;
i
<
marker_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
marker_list
.
length
;
i
+=
1
)
{
m
=
marker_list
[
i
];
m
=
marker_list
[
i
];
marker_link
=
document
.
createElement
(
"
a
"
);
marker_label
=
domsugar
(
"
div
"
,
{},
[
marker_link
.
href
=
url_list
[
i
];
domsugar
(
"
a
"
,
{
href
:
url_list
[
i
],
text
:
m
.
doc
.
title
,
'
class
'
:
"
ui-btn-map
"
})
marker_link
.
text
=
m
.
doc
.
title
;
]);
marker_link
.
className
=
"
ui-btn-map
"
;
marker_label
=
document
.
createElement
(
"
div
"
);
marker_label
.
appendChild
(
marker_link
);
marker_space
=
document
.
createElement
(
"
span
"
);
marker_space
.
innerHTML
=
"
|
"
;
marker_space
.
className
=
"
ui-btn-map
"
;
marker_label
.
appendChild
(
marker_space
);
marker_monitor_link
=
document
.
createElement
(
"
a
"
);
marker_monitor_link
.
target
=
"
_blank
"
;
// Please update me, and compose the actuall url.
marker_monitor_link
.
href
=
hateoas_url
+
marker_list
[
i
].
jio_key
+
"
/Base_redirectToMonitor
"
;
marker_monitor_link
.
text
=
"
>
"
;
marker_monitor_link
.
className
=
"
ui-btn-map ui-btn ui-btn-icon-left ui-icon-desktop
"
;
marker_label
.
appendChild
(
marker_monitor_link
);
marker
=
new
L
.
marker
(
marker
=
new
L
.
marker
(
[
m
.
doc
.
latitude
||
0
,
m
.
doc
.
longitude
||
0
],
[
m
.
doc
.
latitude
||
0
,
m
.
doc
.
longitude
||
0
],
marker_options
marker_options
...
@@ -209,23 +160,18 @@
...
@@ -209,23 +160,18 @@
container
=
e
.
popup
.
_container
.
querySelector
(
'
.leaflet-popup-content-wrapper
'
);
container
=
e
.
popup
.
_container
.
querySelector
(
'
.leaflet-popup-content-wrapper
'
);
tmp
=
container
.
querySelector
(
'
.sensor-status
'
);
tmp
=
container
.
querySelector
(
'
.sensor-status
'
);
if
(
!
tmp
)
{
if
(
!
tmp
)
{
tmp
=
document
.
createElement
(
'
div
'
);
tmp
=
domsugar
(
'
div
'
,
{
'
class
'
:
'
sensor-status
'
});
tmp
.
className
=
'
sensor-status
'
;
tmp
.
style
[
'
min-width
'
]
=
'
210px
'
;
container
.
appendChild
(
tmp
);
container
.
appendChild
(
tmp
);
e
.
target
.
_queue
.
push
(
function
()
{
e
.
target
.
_queue
.
push
(
function
()
{
return
gadget
.
declareGadget
(
'
gadget_slapos_status.html
'
,
{
return
gadget
.
declareGadget
(
'
gadget_slapos_status.html
'
,
{
element
:
tmp
element
:
tmp
});
});
})
}).
push
(
function
(
compute_node
)
{
.
push
(
function
(
compute_node
)
{
//xxxx repopup to resize popup
//xxxx repopup to resize popup
new_marker_list
[
index
].
openPopup
();
new_marker_list
[
index
].
openPopup
();
return
compute_node
.
render
({
value
:
{
return
compute_node
.
render
({
jio_key
:
gadget
.
options
.
marker_list
?
gadget
.
options
.
marker_list
[
index
].
jio_key
:
""
,
jio_key
:
gadget
.
options
.
marker_list
?
gadget
.
options
.
marker_list
[
index
].
jio_key
:
""
,
doc
:
gadget
.
options
.
marker_list
?
gadget
.
options
.
marker_list
[
index
].
doc
:
""
,
result
:
gadget
.
options
.
marker_list
?
gadget
.
options
.
marker_list
[
index
].
doc
.
result
:
""
result
:
gadget
.
options
.
marker_list
?
gadget
.
options
.
marker_list
[
index
].
doc
.
result
:
""
}
});
});
});
});
}
}
...
@@ -236,4 +182,4 @@
...
@@ -236,4 +182,4 @@
return
RSVP
.
all
(
list
);
return
RSVP
.
all
(
list
);
});
});
});
});
}(
window
,
document
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
L
,
domsugar
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_map_js.xml
View file @
369e8d56
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
01.24988.19785.29030
</string>
</value>
<value>
<string>
10
10.50117.59231.38434
</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>
16
56977110.45
</float>
<float>
16
93270216.86
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_instance_tree_js.js
View file @
369e8d56
...
@@ -115,16 +115,14 @@
...
@@ -115,16 +115,14 @@
page_title_translation
=
result
[
2
][
9
];
page_title_translation
=
result
[
2
][
9
];
var
doc
=
result
[
1
],
var
doc
=
result
[
1
],
parameter_dict
=
{
parameter_dict
=
{
'
parameter
'
:
{
'
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_hash
'
:
btoa
(
'
<?xml version="1.0" encoding="utf-8" ?><instance/>
'
)
}
};
};
if
(
options
.
software_type
)
{
if
(
options
.
software_type
)
{
parameter_dict
[
"
parameter
"
][
'
softwaretype
'
]
=
options
.
software_type
;
parameter_dict
[
'
softwaretype
'
]
=
options
.
software_type
;
}
}
if
(
options
.
shared
)
{
if
(
options
.
shared
)
{
parameter_dict
[
"
parameter
"
][
'
shared
'
]
=
true
;
parameter_dict
[
'
shared
'
]
=
true
;
}
}
return
result
[
0
].
render
({
return
result
[
0
].
render
({
...
@@ -155,7 +153,7 @@
...
@@ -155,7 +153,7 @@
"
your_text_content
"
:
{
"
your_text_content
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
result
[
2
][
5
],
"
title
"
:
result
[
2
][
5
],
"
default
"
:
parameter_dict
,
"
default
"
:
""
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
1
,
"
required
"
:
1
,
"
editable
"
:
1
,
"
editable
"
:
1
,
...
@@ -163,7 +161,8 @@
...
@@ -163,7 +161,8 @@
"
sandbox
"
:
""
,
"
sandbox
"
:
""
,
"
key
"
:
"
text_content
"
,
"
key
"
:
"
text_content
"
,
"
hidden
"
:
0
,
"
hidden
"
:
0
,
"
type
"
:
"
GadgetField
"
"
type
"
:
"
GadgetField
"
,
"
renderjs_extra
"
:
JSON
.
stringify
(
parameter_dict
)
},
},
"
your_computer_guid
"
:
{
"
your_computer_guid
"
:
{
"
description
"
:
result
[
2
][
2
],
"
description
"
:
result
[
2
][
2
],
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_instance_tree_js.xml
View file @
369e8d56
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
08.22803.51783.6109
8
</string>
</value>
<value>
<string>
10
10.44014.55766.1740
8
</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>
16
83853456.43
</float>
<float>
16
92989933.58
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_list_js.js
View file @
369e8d56
/*global window, rJS, RSVP */
/*global window, rJS, RSVP
, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -19,19 +19,21 @@
...
@@ -19,19 +19,21 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
news
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
((
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
ComputeNode_getNewsDict
"
)))
{
if
((
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
getAccessStatus
"
)))
{
value
=
result
.
data
.
rows
[
i
].
id
;
value
_jio_key
=
result
.
data
.
rows
[
i
].
id
;
news
=
result
.
data
.
rows
[
i
].
value
.
ComputeNode_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
;
result
.
data
.
rows
[
i
].
value
.
ComputeNode_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value
,
default
:
""
,
result
:
news
,
renderjs_extra
:
JSON
.
stringify
({
portal_type
:
"
Compute Node
"
},
jio_key
:
value_jio_key
,
result
:
value
}),
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
url
:
"
gadget_slapos_status.html
"
,
title
:
"
Status
"
,
title
:
"
Status
"
,
...
@@ -86,7 +88,7 @@
...
@@ -86,7 +88,7 @@
[
'
title
'
,
result
[
3
][
0
]],
[
'
title
'
,
result
[
3
][
0
]],
[
'
reference
'
,
result
[
3
][
1
]],
[
'
reference
'
,
result
[
3
][
1
]],
[
'
allocation_scope_title
'
,
result
[
3
][
2
]],
[
'
allocation_scope_title
'
,
result
[
3
][
2
]],
[
'
ComputeNode_getNewsDict
'
,
result
[
3
][
3
]]
[
'
getAccessStatus
'
,
result
[
3
][
3
]]
],
],
form_list
=
result
[
0
];
form_list
=
result
[
0
];
lines_limit
=
result
[
1
];
lines_limit
=
result
[
1
];
...
@@ -151,4 +153,4 @@
...
@@ -151,4 +153,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_list_js.xml
View file @
369e8d56
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
01.59387.30502.30993
</string>
</value>
<value>
<string>
10
10.39712.21917.33587
</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>
16
59068807.75
</float>
<float>
16
92646587.64
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_view_js.js
View file @
369e8d56
/*global window, rJS, RSVP */
/*global window, rJS, RSVP
, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -28,18 +28,19 @@
...
@@ -28,18 +28,19 @@
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
))
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
))
{
value
=
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
"
default
"
:
""
,
renderjs_extra
:
JSON
.
stringify
({
jio_key
:
value_jio_key
,
jio_key
:
value_jio_key
,
result
:
value
,
result
:
value
portal_type
:
"
Software Installation
"
}
,
})
,
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
url
:
"
gadget_slapos_status.html
"
,
title
:
"
Status
"
,
title
:
"
Status
"
,
...
@@ -67,20 +68,14 @@
...
@@ -67,20 +68,14 @@
return
form_gadget
.
getContent
();
return
form_gadget
.
getContent
();
})
})
.
push
(
function
(
content
)
{
.
push
(
function
(
content
)
{
return
gadget
.
updateDocument
(
content
)
return
gadget
.
updateDocument
(
content
);
.
push
(
function
(
ndoc
)
{
ndoc
.
allocation_scope
=
content
.
allocation_scope
;
return
gadget
.
render
({
jio_key
:
gadget
.
state
.
jio_key
,
doc
:
ndoc
});
});
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
});
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
});
});
});
})
})
.
declareMethod
(
"
triggerSubmit
"
,
function
()
{
.
declareMethod
(
"
triggerSubmit
"
,
function
()
{
return
this
.
element
.
querySelector
(
'
button[type="submit"]
'
).
click
();
return
this
.
element
.
querySelector
(
'
button[type="submit"]
'
).
click
();
})
})
...
@@ -153,7 +148,7 @@
...
@@ -153,7 +148,7 @@
column_list
=
[
column_list
=
[
[
'
SoftwareInstallation_getSoftwareReleaseInformation
'
,
results
[
2
][
1
]],
[
'
SoftwareInstallation_getSoftwareReleaseInformation
'
,
results
[
2
][
1
]],
[
'
url_string
'
,
results
[
2
][
2
]],
[
'
url_string
'
,
results
[
2
][
2
]],
[
'
SoftwareInstallation_getNewsDict
'
,
results
[
2
][
3
]]
[
'
getAccessStatus
'
,
results
[
2
][
3
]]
],
],
ticket_column_list
=
[
ticket_column_list
=
[
[
'
title
'
,
results
[
2
][
4
]],
[
'
title
'
,
results
[
2
][
4
]],
...
@@ -304,9 +299,11 @@
...
@@ -304,9 +299,11 @@
"
my_monitoring_status
"
:
{
"
my_monitoring_status
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
results
[
2
][
29
],
"
title
"
:
results
[
2
][
29
],
"
default
"
:
{
jio_key
:
gadget
.
state
.
jio_key
,
"
default
"
:
""
,
result
:
gadget
.
state
.
doc
.
news
,
"
renderjs_extra
"
:
JSON
.
stringify
({
portal_type
:
"
Compute Node
"
},
jio_key
:
gadget
.
state
.
jio_key
,
result
:
gadget
.
state
.
doc
.
news
}),
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
editable
"
:
0
,
...
@@ -416,4 +413,4 @@
...
@@ -416,4 +413,4 @@
return
gadget
.
updateHeader
(
header_dict
);
return
gadget
.
updateHeader
(
header_dict
);
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_view_js.xml
View file @
369e8d56
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
09.49086.48551.49459
</string>
</value>
<value>
<string>
10
10.39674.54022.30344
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
169
0911267.44
</float>
<float>
169
2648139.06
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_network_view_js.js
View file @
369e8d56
...
@@ -28,31 +28,28 @@
...
@@ -28,31 +28,28 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
news
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
ComputeNode_getNewsDict
"
)
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
getAccessStatus
"
))
{
value
=
result
.
data
.
rows
[
i
].
id
;
value
_jio_key
=
result
.
data
.
rows
[
i
].
id
;
news
=
result
.
data
.
rows
[
i
].
value
.
ComputeNode_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
;
result
.
data
.
rows
[
i
].
value
.
ComputeNode_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
"
default
"
:
""
,
jio_key
:
value
,
renderjs_extra
:
JSON
.
stringify
({
result
:
news
,
jio_key
:
value_jio_key
,
portal_type
:
"
Compute Node
"
result
:
value
},
}
)
,
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
url
:
"
gadget_slapos_status.html
"
,
title
:
gadget
.
title_translation
,
title
:
gadget
.
title_translation
,
type
:
"
GadgetField
"
type
:
"
GadgetField
"
}
}
};
};
result
.
data
.
rows
[
i
].
value
[
"
listbox_uid:list
"
]
=
{
result
.
data
.
rows
[
i
].
value
[
"
listbox_uid:list
"
]
=
{};
//key: "listbox_uid:list",
//value: 2713
};
}
}
}
}
return
result
;
return
result
;
...
@@ -121,7 +118,7 @@
...
@@ -121,7 +118,7 @@
[
'
title
'
,
result
[
1
][
1
]],
[
'
title
'
,
result
[
1
][
1
]],
[
'
reference
'
,
result
[
1
][
2
]],
[
'
reference
'
,
result
[
1
][
2
]],
[
'
allocation_scope_translated_title
'
,
result
[
1
][
3
]],
[
'
allocation_scope_translated_title
'
,
result
[
1
][
3
]],
[
'
ComputeNode_getNewsDict
'
,
result
[
1
][
4
]]
[
'
getAccessStatus
'
,
result
[
1
][
4
]]
];
];
return
result
[
0
].
render
({
return
result
[
0
].
render
({
erp5_document
:
{
erp5_document
:
{
...
@@ -151,8 +148,11 @@
...
@@ -151,8 +148,11 @@
"
my_monitoring_status
"
:
{
"
my_monitoring_status
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
result
[
1
][
5
],
"
title
"
:
result
[
1
][
5
],
"
default
"
:
{
jio_key
:
gadget
.
state
.
jio_key
,
"
default
"
:
""
,
result
:
gadget
.
state
.
doc
.
news
},
"
renderjs_extra
"
:
JSON
.
stringify
({
jio_key
:
gadget
.
state
.
jio_key
,
result
:
gadget
.
state
.
doc
.
news
}),
"
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_computer_network_view_js.xml
View file @
369e8d56
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
09.17464.55631.39321
</string>
</value>
<value>
<string>
10
10.39734.62596.14779
</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>
16
87465625.96
</float>
<float>
16
92672489.88
</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 @
369e8d56
/*global window, rJS, RSVP, jIO,
Blob, btoa
*/
/*global window, rJS, RSVP, jIO,
btoa, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
,
btoa
)
{
(
function
(
window
,
rJS
,
RSVP
,
jIO
,
btoa
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -27,17 +27,21 @@
...
@@ -27,17 +27,21 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
jio_key_value
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
))
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
))
{
value
=
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
;
jio_key_value
=
result
.
data
.
rows
[
i
].
id
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
gadget
.
description_translation
,
description
:
gadget
.
description_translation
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
jio_key_value
,
result
:
value
},
"
default
"
:
""
,
renderjs_extra
:
JSON
.
stringify
({
jio_key
:
value_jio_key
,
result
:
value
}),
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
url
:
"
gadget_slapos_status.html
"
,
title
:
gadget
.
title_translation
,
title
:
gadget
.
title_translation
,
...
@@ -49,7 +53,7 @@
...
@@ -49,7 +53,7 @@
value
:
2713
value
:
2713
};
};
}
}
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
connection_key
"
)
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
connection_key
"
))
{
value
=
result
.
data
.
rows
[
i
].
value
.
connection_key
;
value
=
result
.
data
.
rows
[
i
].
value
.
connection_key
;
result
.
data
.
rows
[
i
].
value
.
connection_key
=
{
result
.
data
.
rows
[
i
].
value
.
connection_key
=
{
field_gadget_param
:
{
field_gadget_param
:
{
...
@@ -224,15 +228,13 @@
...
@@ -224,15 +228,13 @@
[
'
connection_value
'
,
result
[
1
][
14
]]
[
'
connection_value
'
,
result
[
1
][
14
]]
],
],
parameter_dict
=
{
parameter_dict
=
{
'
parameter
'
:
{
'
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_hash
'
:
btoa
(
'
<?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
.
parameter
_hash
=
btoa
(
gadget
.
state
.
doc
.
text_content
);
parameter_dict
.
parameter_hash
=
btoa
(
gadget
.
state
.
doc
.
text_content
);
}
}
return
gadget
.
getSetting
(
"
hateoas_url
"
)
return
gadget
.
getSetting
(
"
hateoas_url
"
)
.
push
(
function
(
url
)
{
.
push
(
function
(
url
)
{
...
@@ -310,7 +312,7 @@
...
@@ -310,7 +312,7 @@
"
my_text_content
"
:
{
"
my_text_content
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
result
[
1
][
19
],
"
title
"
:
result
[
1
][
19
],
"
default
"
:
parameter_dict
,
"
default
"
:
""
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
required
"
:
0
,
"
editable
"
:
1
,
"
editable
"
:
1
,
...
@@ -318,7 +320,9 @@
...
@@ -318,7 +320,9 @@
"
sandbox
"
:
""
,
"
sandbox
"
:
""
,
"
key
"
:
"
text_content
"
,
"
key
"
:
"
text_content
"
,
"
hidden
"
:
0
,
"
hidden
"
:
0
,
"
type
"
:
"
GadgetField
"
"
type
"
:
"
GadgetField
"
,
"
renderjs_extra
"
:
JSON
.
stringify
(
parameter_dict
)
},
},
"
my_source_project
"
:
{
"
my_source_project
"
:
{
"
description
"
:
result
[
1
][
20
],
"
description
"
:
result
[
1
][
20
],
...
@@ -345,8 +349,11 @@
...
@@ -345,8 +349,11 @@
"
my_monitoring_status
"
:
{
"
my_monitoring_status
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
result
[
1
][
23
],
"
title
"
:
result
[
1
][
23
],
"
default
"
:
{
jio_key
:
gadget
.
state
.
jio_key
,
"
default
"
:
""
,
result
:
gadget
.
state
.
doc
.
news
},
"
renderjs_extra
"
:
JSON
.
stringify
({
jio_key
:
gadget
.
state
.
jio_key
,
result
:
gadget
.
state
.
doc
.
news
}),
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
editable
"
:
0
,
...
@@ -543,4 +550,4 @@
...
@@ -543,4 +550,4 @@
return
gadget
.
updateHeader
(
header_dict
);
return
gadget
.
updateHeader
(
header_dict
);
});
});
});
});
}(
window
,
rJS
,
RSVP
,
btoa
));
}(
window
,
rJS
,
RSVP
,
jIO
,
btoa
,
JSON
));
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_js.xml
View file @
369e8d56
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
08.51163.7897.31249
</string>
</value>
<value>
<string>
10
10.44015.51861.27016
</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>
16
87459175.1
</float>
<float>
16
92924255.67
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_network_list_js.js
View file @
369e8d56
/*global window, rJS, RSVP */
/*global window, rJS, RSVP
, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -18,18 +18,21 @@
...
@@ -18,18 +18,21 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
news
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
ComputerNetwork_getNewsDict
"
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
ComputerNetwork_getNewsDict
"
))
{
value
=
result
.
data
.
rows
[
i
].
id
;
value
_jio_key
=
result
.
data
.
rows
[
i
].
id
;
news
=
result
.
data
.
rows
[
i
].
value
.
ComputerNetwork_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
ComputerNetwork_getNewsDict
;
result
.
data
.
rows
[
i
].
value
.
ComputerNetwork_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
ComputerNetwork_getNewsDict
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value
,
default
:
""
,
result
:
news
},
renderjs_extra
:
JSON
.
stringify
({
jio_key
:
value_jio_key
,
result
:
value
}),
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
url
:
"
gadget_slapos_status.html
"
,
title
:
"
Status
"
,
title
:
"
Status
"
,
...
@@ -141,4 +144,4 @@
...
@@ -141,4 +144,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_network_list_js.xml
View file @
369e8d56
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
01.59379.40192.59272
</string>
</value>
<value>
<string>
10
10.39717.23460.37051
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
59068921.68
</float>
<float>
16
92646374.56
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_service_list_js.js
View file @
369e8d56
/*global window, rJS, RSVP */
/*global window, rJS, RSVP
, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
reload
"
,
"
reload
"
)
.
declareAcquiredMethod
(
"
reload
"
,
"
reload
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
...
@@ -19,16 +18,20 @@
...
@@ -19,16 +18,20 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
news
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
InstanceTree_getNewsDict
"
)
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
InstanceTree_getNewsDict
"
))
{
value
=
result
.
data
.
rows
[
i
].
id
;
value
_jio_key
=
result
.
data
.
rows
[
i
].
id
;
news
=
result
.
data
.
rows
[
i
].
value
.
InstanceTree_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
InstanceTree_getNewsDict
;
result
.
data
.
rows
[
i
].
value
.
InstanceTree_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
InstanceTree_getNewsDict
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
hidden
:
0
,
hidden
:
0
,
default
:
{
jio_key
:
value
,
result
:
news
},
default
:
""
,
renderjs_extra
:
JSON
.
stringify
({
jio_key
:
value_jio_key
,
result
:
value
}),
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
url
:
"
gadget_slapos_status.html
"
,
type
:
"
GadgetField
"
type
:
"
GadgetField
"
...
@@ -105,4 +108,4 @@
...
@@ -105,4 +108,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_service_list_js.xml
View file @
369e8d56
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
01.59388.52713.22408
</string>
</value>
<value>
<string>
10
10.39704.42949.15616
</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>
16
59068879.32
</float>
<float>
16
92646558.09
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_site_list_js.js
View file @
369e8d56
/*global window, rJS, RSVP */
/*global window, rJS, RSVP
, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
JSON
)
{
'
use strict
'
;
'
use strict
'
;
rJS
(
window
)
rJS
(
window
)
...
@@ -24,10 +24,7 @@
...
@@ -24,10 +24,7 @@
value_jio_key
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
'
Organisation_getNewsDict
'
))
{
1
||
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
'
Organisation_getNewsDict
'
)
)
{
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
value
=
result
.
data
.
rows
[
i
].
value
.
Organisation_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
Organisation_getNewsDict
;
result
.
data
.
rows
[
i
].
value
.
Organisation_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
Organisation_getNewsDict
=
{
...
@@ -35,7 +32,11 @@
...
@@ -35,7 +32,11 @@
css_class
:
''
,
css_class
:
''
,
description
:
'
The Status
'
,
description
:
'
The Status
'
,
hidden
:
0
,
hidden
:
0
,
default
:
{
jio_key
:
value_jio_key
,
result
:
value
},
default
:
""
,
renderjs_extra
:
JSON
.
stringify
({
jio_key
:
value_jio_key
,
result
:
value
}),
key
:
'
status
'
,
key
:
'
status
'
,
url
:
'
gadget_slapos_status.html
'
,
url
:
'
gadget_slapos_status.html
'
,
title
:
'
Status
'
,
title
:
'
Status
'
,
...
@@ -94,7 +95,6 @@
...
@@ -94,7 +95,6 @@
column_list
=
[
column_list
=
[
[
'
title
'
,
result
[
2
][
0
]],
[
'
title
'
,
result
[
2
][
0
]],
[
'
reference
'
,
result
[
2
][
1
]],
[
'
reference
'
,
result
[
2
][
1
]],
//['default_address_region_title', result[2][2]],
[
'
Organisation_getNewsDict
'
,
result
[
2
][
3
]]
[
'
Organisation_getNewsDict
'
,
result
[
2
][
3
]]
];
];
destination_list
=
'
%22NULL%22%2C
'
;
destination_list
=
'
%22NULL%22%2C
'
;
...
@@ -168,4 +168,4 @@
...
@@ -168,4 +168,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
JSON
));
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_site_list_js.xml
View file @
369e8d56
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
01.59386.28929.32102
</string>
</value>
<value>
<string>
10
10.39714.20170.25019
</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>
16
59068860.6
6
</float>
<float>
16
92645285.3
6
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_site_view_js.js
View file @
369e8d56
/*global window, rJS, RSVP,
jIO, Blob
*/
/*global window, rJS, RSVP,
JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -30,17 +30,21 @@
...
@@ -30,17 +30,21 @@
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
ComputeNode_getNewsDict
"
)
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
getAccessStatus
"
))
{
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
value
=
result
.
data
.
rows
[
i
].
value
.
ComputeNode_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
;
result
.
data
.
rows
[
i
].
value
.
ComputeNode_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
getAccessStatus
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
gadget
.
description_translation
,
description
:
gadget
.
description_translation
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value_jio_key
,
result
:
value
,
portal_type
:
"
Compute Node
"
}
,
default
:
""
,
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
url
:
"
gadget_slapos_status.html
"
,
renderjs_extra
:
JSON
.
stringify
({
jio_key
:
value_jio_key
,
result
:
value
}),
title
:
gadget
.
title_translation
,
title
:
gadget
.
title_translation
,
type
:
"
GadgetField
"
type
:
"
GadgetField
"
}
}
...
@@ -117,7 +121,7 @@
...
@@ -117,7 +121,7 @@
column_list
=
[
column_list
=
[
[
'
title
'
,
result
[
2
][
0
]],
[
'
title
'
,
result
[
2
][
0
]],
[
'
reference
'
,
result
[
2
][
1
]],
[
'
reference
'
,
result
[
2
][
1
]],
[
'
ComputeNode_getNewsDict
'
,
result
[
2
][
9
]]
[
'
getAccessStatus
'
,
result
[
2
][
9
]]
];
];
return
result
[
0
].
render
({
return
result
[
0
].
render
({
erp5_document
:
{
erp5_document
:
{
...
@@ -169,8 +173,11 @@
...
@@ -169,8 +173,11 @@
"
my_monitoring_status
"
:
{
"
my_monitoring_status
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
result
[
2
][
4
],
"
title
"
:
result
[
2
][
4
],
"
default
"
:
{
jio_key
:
gadget
.
state
.
jio_key
,
"
default
"
:
""
,
result
:
gadget
.
state
.
doc
.
news
},
"
renderjs_extra
"
:
JSON
.
stringify
({
jio_key
:
gadget
.
state
.
jio_key
,
result
:
gadget
.
state
.
doc
.
news
}),
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
1
,
"
required
"
:
1
,
"
editable
"
:
0
,
"
editable
"
:
0
,
...
@@ -270,4 +277,4 @@
...
@@ -270,4 +277,4 @@
return
gadget
.
updateHeader
(
header_dict
);
return
gadget
.
updateHeader
(
header_dict
);
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_site_view_js.xml
View file @
369e8d56
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
999.2068.62564.17
</string>
</value>
<value>
<string>
1010.39676.63129.16622
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
54874891.9
1
</float>
<float>
16
92673382.3
1
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_software_installation_view_js.js
View file @
369e8d56
/*global window, rJS, RSVP,
jIO, Blob
*/
/*global window, rJS, RSVP,
JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -153,10 +153,11 @@
...
@@ -153,10 +153,11 @@
"
my_monitoring_status
"
:
{
"
my_monitoring_status
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
result
[
2
][
8
],
"
title
"
:
result
[
2
][
8
],
"
default
"
:
{
"
default
"
:
""
,
"
renderjs_extra
"
:
JSON
.
stringify
({
jio_key
:
gadget
.
state
.
jio_key
,
jio_key
:
gadget
.
state
.
jio_key
,
result
:
gadget
.
state
.
doc
.
news
result
:
gadget
.
state
.
doc
.
news
},
}
)
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
1
,
"
required
"
:
1
,
"
editable
"
:
0
,
"
editable
"
:
0
,
...
@@ -210,4 +211,4 @@
...
@@ -210,4 +211,4 @@
return
gadget
.
updateHeader
(
header_dict
);
return
gadget
.
updateHeader
(
header_dict
);
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_software_installation_view_js.xml
View file @
369e8d56
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
100
1.26171.19762.42854
</string>
</value>
<value>
<string>
100
6.58340.40727.23620
</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>
16
57906193.21
</float>
<float>
16
92645366.58
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_software_instance_view_js.js
View file @
369e8d56
/*global window, rJS, RSVP,
jIO, Blob
*/
/*global window, rJS, RSVP,
JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
connection_key
"
)
))
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
connection_key
"
))
{
value
=
result
.
data
.
rows
[
i
].
value
.
connection_key
;
value
=
result
.
data
.
rows
[
i
].
value
.
connection_key
;
result
.
data
.
rows
[
i
].
value
.
connection_key
=
{
result
.
data
.
rows
[
i
].
value
.
connection_key
=
{
field_gadget_param
:
{
field_gadget_param
:
{
...
@@ -164,11 +164,11 @@
...
@@ -164,11 +164,11 @@
"
my_monitoring_status
"
:
{
"
my_monitoring_status
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
result
[
2
][
2
],
"
title
"
:
result
[
2
][
2
],
"
default
"
:
{
"
default
"
:
""
,
"
renderjs_extra
"
:
JSON
.
stringify
({
jio_key
:
gadget
.
state
.
jio_key
,
jio_key
:
gadget
.
state
.
jio_key
,
result
:
gadget
.
state
.
doc
.
news
,
result
:
gadget
.
state
.
doc
.
news
portal_type
:
gadget
.
state
.
doc
.
portal_type
}),
},
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
1
,
"
required
"
:
1
,
"
editable
"
:
0
,
"
editable
"
:
0
,
...
@@ -307,4 +307,4 @@
...
@@ -307,4 +307,4 @@
return
gadget
.
updateHeader
(
header_dict
);
return
gadget
.
updateHeader
(
header_dict
);
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_software_instance_view_js.xml
View file @
369e8d56
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
08.13874.12169.28194
</string>
</value>
<value>
<string>
10
10.39695.33171.41693
</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>
16
84250249.63
</float>
<float>
16
92644162.31
</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 @
369e8d56
/*global window, rJS, RSVP, btoa */
/*global window, rJS, RSVP, btoa
, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3, sub:true */
/*jslint nomen: true, indent: 2, maxerr: 3, sub:true */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
btoa
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -106,13 +106,11 @@
...
@@ -106,13 +106,11 @@
parameter_hash
=
btoa
(
gadget
.
state
.
parameter_output
);
parameter_hash
=
btoa
(
gadget
.
state
.
parameter_output
);
}
}
parameter_dict
=
{
parameter_dict
=
{
'
parameter
'
:
{
'
json_url
'
:
gadget
.
state
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
json_url
'
:
gadget
.
state
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
parameter_hash
'
:
parameter_hash
'
parameter_hash
'
:
parameter_hash
}
};
};
if
(
gadget
.
state
.
software_type_list
)
{
if
(
gadget
.
state
.
software_type_list
)
{
parameter_dict
.
parameter
.
software_type_list
=
gadget
.
state
.
software_type_list
.
split
(
'
,
'
);
parameter_dict
.
software_type_list
=
gadget
.
state
.
software_type_list
.
split
(
'
,
'
);
}
}
return
result
[
0
].
render
({
return
result
[
0
].
render
({
erp5_document
:
{
erp5_document
:
{
...
@@ -131,7 +129,7 @@
...
@@ -131,7 +129,7 @@
"
your_text_content
"
:
{
"
your_text_content
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
"
Parameters
"
,
"
title
"
:
"
Parameters
"
,
"
default
"
:
parameter_dict
,
"
default
"
:
""
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
1
,
"
required
"
:
1
,
"
editable
"
:
gadget
.
state
.
url_string
!==
""
,
"
editable
"
:
gadget
.
state
.
url_string
!==
""
,
...
@@ -139,7 +137,8 @@
...
@@ -139,7 +137,8 @@
"
sandbox
"
:
""
,
"
sandbox
"
:
""
,
"
key
"
:
"
text_content
"
,
"
key
"
:
"
text_content
"
,
"
hidden
"
:
gadget
.
state
.
url_string
===
""
,
"
hidden
"
:
gadget
.
state
.
url_string
===
""
,
"
type
"
:
"
GadgetField
"
"
type
"
:
"
GadgetField
"
,
"
renderjs_extra
"
:
JSON
.
stringify
(
parameter_dict
)
},
},
"
your_software_type
"
:
{
"
your_software_type
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
...
@@ -207,4 +206,4 @@
...
@@ -207,4 +206,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
btoa
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.xml
View file @
369e8d56
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
04.41258.43166.28757
</string>
</value>
<value>
<string>
10
10.42602.14389.54903
</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>
16
69664533.48
</float>
<float>
16
92903464.84
</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 @
369e8d56
/*global window, rJS, RSVP, btoa */
/*global window, rJS, RSVP, btoa
, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3, sub:true */
/*jslint nomen: true, indent: 2, maxerr: 3, sub:true */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
btoa
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -112,15 +112,13 @@
...
@@ -112,15 +112,13 @@
parameter_hash
=
btoa
(
gadget
.
state
.
parameter_output
);
parameter_hash
=
btoa
(
gadget
.
state
.
parameter_output
);
}
}
parameter_dict
=
{
parameter_dict
=
{
'
parameter
'
:
{
'
json_url
'
:
gadget
.
state
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
json_url
'
:
gadget
.
state
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
parameter_hash
'
:
parameter_hash
,
'
parameter_hash
'
:
parameter_hash
,
'
softwaretype
'
:
gadget
.
state
.
software_type
,
'
softwaretype
'
:
gadget
.
state
.
software_type
,
'
restricted_softwaretype
'
:
false
'
restricted_softwaretype
'
:
false
}
};
};
if
(
gadget
.
state
.
shared
===
'
yes
'
)
{
if
(
gadget
.
state
.
shared
===
'
yes
'
)
{
parameter_dict
[
'
parameter
'
][
'
shared
'
]
=
true
;
parameter_dict
[
'
shared
'
]
=
true
;
}
}
return
result
[
0
].
render
({
return
result
[
0
].
render
({
erp5_document
:
{
erp5_document
:
{
...
@@ -139,7 +137,7 @@
...
@@ -139,7 +137,7 @@
"
your_text_content
"
:
{
"
your_text_content
"
:
{
"
description
"
:
""
,
"
description
"
:
""
,
"
title
"
:
"
Parameters
"
,
"
title
"
:
"
Parameters
"
,
"
default
"
:
parameter_dict
,
"
default
"
:
""
,
"
css_class
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
1
,
"
required
"
:
1
,
"
editable
"
:
0
,
"
editable
"
:
0
,
...
@@ -147,7 +145,8 @@
...
@@ -147,7 +145,8 @@
"
sandbox
"
:
""
,
"
sandbox
"
:
""
,
"
key
"
:
"
text_content
"
,
"
key
"
:
"
text_content
"
,
"
hidden
"
:
gadget
.
state
.
url_string
===
""
,
"
hidden
"
:
gadget
.
state
.
url_string
===
""
,
"
type
"
:
"
GadgetField
"
"
type
"
:
"
GadgetField
"
,
"
renderjs_extra
"
:
JSON
.
stringify
(
parameter_dict
)
},
},
"
your_software_type
"
:
{
"
your_software_type
"
:
{
"
description
"
:
"
Software Type
"
,
"
description
"
:
"
Software Type
"
,
...
@@ -216,4 +215,4 @@
...
@@ -216,4 +215,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
btoa
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_readonly_parameter_form_js.xml
View file @
369e8d56
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
04.32728.24062.25344
</string>
</value>
<value>
<string>
10
10.44012.38164.19575
</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>
16
69152031.46
</float>
<float>
16
92982452.93
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slapos_js.js
View file @
369e8d56
/*global document, window,
Option, rJS, RSVP, Chart, UriTemplate, domsugar
*/
/*global document, window,
rJS, RSVP, Chart, domsugar, JSON
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
,
domsugar
)
{
(
function
(
window
,
rJS
,
RSVP
,
domsugar
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
var
gadget_klass
=
rJS
(
window
);
gadget_klass
gadget_klass
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateConfiguration
"
,
"
updateConfiguration
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
...
@@ -41,7 +40,11 @@
...
@@ -41,7 +40,11 @@
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value_jio_key
,
result
:
value
},
default
:
""
,
renderjs_extra
:
JSON
.
stringify
({
jio_key
:
value_jio_key
,
result
:
value
}),
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
url
:
"
gadget_slapos_status.html
"
,
title
:
"
Status
"
,
title
:
"
Status
"
,
...
@@ -393,4 +396,4 @@
...
@@ -393,4 +396,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
,
domsugar
));
}(
window
,
rJS
,
RSVP
,
domsugar
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slapos_js.xml
View file @
369e8d56
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
04.6436.36702.26948
</string>
</value>
<value>
<string>
10
10.39708.44914.39287
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
68205150.06
</float>
<float>
16
92644993.84
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/ComputeNode_getNewsDict.py
deleted
100644 → 0
View file @
df2138b9
from
zExceptions
import
Unauthorized
if
REQUEST
is
not
None
:
raise
Unauthorized
return
context
.
getAccessStatus
()
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/ComputeNode_getNewsDict.xml
deleted
100644 → 0
View file @
df2138b9
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
REQUEST=None
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ComputeNode_getNewsDict
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/ComputeNode_viewAsHateoas/my_news.xml
View file @
369e8d56
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string>
here/
ComputeNode_getNewsDict
</string>
</value>
<value>
<string>
here/
getAccessStatus
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Document_getNewsDict.py
View file @
369e8d56
portal_type
=
context
.
getPortalType
()
portal_type
=
context
.
getPortalType
()
if
portal_type
==
"Compute Node"
:
if
portal_type
==
"Compute Node"
:
return
context
.
ComputeNode_getNewsDict
(
**
kw
)
return
context
.
getAccessStatus
(
**
kw
)
if
portal_type
==
"Instance Tree"
:
if
portal_type
==
"Instance Tree"
:
return
context
.
InstanceTree_getNewsDict
(
**
kw
)
return
context
.
InstanceTree_getNewsDict
(
**
kw
)
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_getNewsDict.py
deleted
100644 → 0
View file @
df2138b9
from
zExceptions
import
Unauthorized
if
REQUEST
is
not
None
:
raise
Unauthorized
return
context
.
getAccessStatus
()
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_getNewsDict.xml
deleted
100644 → 0
View file @
df2138b9
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
REQUEST=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwareInstallation_getNewsDict
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_viewAsHateoas/my_news.xml
View file @
369e8d56
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string>
here/
SoftwareInstallation_getNewsDict
</string>
</value>
<value>
<string>
here/
getAccessStatus
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_jio/TestTemplateItem/portal_components/test.erp5.testSlapOSHalJsonStyleSkins.py
View file @
369e8d56
...
@@ -389,201 +389,6 @@ class TestSoftwareInstance_getNewsDict(TestSlapOSHalJsonStyleMixin):
...
@@ -389,201 +389,6 @@ class TestSoftwareInstance_getNewsDict(TestSlapOSHalJsonStyleMixin):
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
_decode_with_json
(
expected_news_dict
))
class
TestSoftwareInstallation_getNewsDict
(
TestSlapOSHalJsonStyleMixin
):
def
test
(
self
):
installation
=
self
.
_makeSoftwareInstallation
()
self
.
_logFakeAccess
(
installation
)
news_dict
=
installation
.
SoftwareInstallation_getNewsDict
()
expected_news_dict
=
{
'created_at'
:
self
.
created_at
,
'no_data_since_15_minutes'
:
0
,
'no_data_since_5_minutes'
:
0
,
'portal_type'
:
installation
.
getPortalType
(),
'reference'
:
installation
.
getReference
(),
'since'
:
self
.
created_at
,
'state'
:
'start_requested'
,
'text'
:
'#access OK'
,
'user'
:
'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
def
test_stopped
(
self
):
installation
=
self
.
_makeSoftwareInstallation
()
self
.
_logFakeAccess
(
installation
,
state
=
'stop_requested'
)
news_dict
=
installation
.
SoftwareInstallation_getNewsDict
()
installation
.
getSlapState
=
fakeStopRequestedSlapState
expected_news_dict
=
{
'created_at'
:
self
.
created_at
,
'no_data_since_15_minutes'
:
0
,
'no_data_since_5_minutes'
:
0
,
'portal_type'
:
installation
.
getPortalType
(),
'reference'
:
installation
.
getReference
(),
'since'
:
self
.
created_at
,
'state'
:
'stop_requested'
,
'text'
:
'#access OK'
,
'user'
:
'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
def
test_destroyed
(
self
):
installation
=
self
.
_makeSoftwareInstallation
()
self
.
_logFakeAccess
(
installation
,
state
=
'destroy_requested'
)
news_dict
=
installation
.
SoftwareInstallation_getNewsDict
()
installation
.
getSlapState
=
fakeDestroyRequestedSlapState
expected_news_dict
=
{
'created_at'
:
self
.
created_at
,
'no_data_since_15_minutes'
:
0
,
'no_data_since_5_minutes'
:
0
,
'portal_type'
:
installation
.
getPortalType
(),
'reference'
:
installation
.
getReference
(),
'since'
:
self
.
created_at
,
'state'
:
'destroy_requested'
,
'text'
:
'#access OK'
,
'user'
:
'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
def
test_no_data
(
self
):
installation
=
self
.
_makeSoftwareInstallation
()
news_dict
=
installation
.
SoftwareInstallation_getNewsDict
()
expected_news_dict
=
{
'created_at'
:
self
.
created_at
,
'no_data'
:
1
,
'portal_type'
:
installation
.
getPortalType
(),
'reference'
:
installation
.
getReference
(),
'since'
:
self
.
created_at
,
'state'
:
''
,
'text'
:
'#error no data found for %s'
%
installation
.
getReference
(),
'user'
:
'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
class
TestComputeNode_getNewsDict
(
TestSlapOSHalJsonStyleMixin
):
def
test
(
self
):
compute_node
=
self
.
_makeComputeNode
()
self
.
_logFakeAccess
(
compute_node
)
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
expected_news_dict
=
{
'created_at'
:
self
.
created_at
,
'no_data_since_15_minutes'
:
0
,
'no_data_since_5_minutes'
:
0
,
'portal_type'
:
compute_node
.
getPortalType
(),
'reference'
:
compute_node
.
getReference
(),
'since'
:
self
.
created_at
,
'state'
:
'start_requested'
,
'text'
:
'#access OK'
,
'user'
:
'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
self
.
tic
()
# Retest so cache is evaludated
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
def
test_stopped
(
self
):
compute_node
=
self
.
_makeComputeNode
()
self
.
_logFakeAccess
(
compute_node
,
state
=
'stop_requested'
)
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
compute_node
.
getSlapState
=
fakeStopRequestedSlapState
expected_news_dict
=
{
'created_at'
:
self
.
created_at
,
'no_data_since_15_minutes'
:
0
,
'no_data_since_5_minutes'
:
0
,
'portal_type'
:
compute_node
.
getPortalType
(),
'reference'
:
compute_node
.
getReference
(),
'since'
:
self
.
created_at
,
'state'
:
'stop_requested'
,
'text'
:
'#access OK'
,
'user'
:
'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
self
.
tic
()
# Retest so cache is evaludated
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
def
test_destroyed
(
self
):
compute_node
=
self
.
_makeComputeNode
()
self
.
_logFakeAccess
(
compute_node
,
state
=
'destroy_requested'
)
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
compute_node
.
getSlapState
=
fakeDestroyRequestedSlapState
expected_news_dict
=
{
'created_at'
:
self
.
created_at
,
'no_data_since_15_minutes'
:
0
,
'no_data_since_5_minutes'
:
0
,
'portal_type'
:
compute_node
.
getPortalType
(),
'reference'
:
compute_node
.
getReference
(),
'since'
:
self
.
created_at
,
'state'
:
'destroy_requested'
,
'text'
:
'#access OK'
,
'user'
:
'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
self
.
tic
()
# Retest so cache is evaludated
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
def
test_no_data
(
self
):
compute_node
=
self
.
_makeComputeNode
()
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
expected_news_dict
=
{
'created_at'
:
self
.
created_at
,
'no_data'
:
1
,
'portal_type'
:
compute_node
.
getPortalType
(),
'reference'
:
compute_node
.
getReference
(),
'since'
:
self
.
created_at
,
'state'
:
''
,
'text'
:
'#error no data found for %s'
%
compute_node
.
getReference
(),
'user'
:
'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
self
.
tic
()
# Retest so cache is evaludated
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
def
test_with_instance
(
self
):
compute_node
=
self
.
_makeComputeNode
()
instance
=
self
.
_makeInstance
()
instance
.
setAggregateValue
(
self
.
partition0
)
self
.
tic
()
self
.
_logFakeAccess
(
compute_node
)
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
expected_news_dict
=
{
u'created_at'
:
u'%s'
%
self
.
created_at
,
'no_data_since_15_minutes'
:
0
,
'no_data_since_5_minutes'
:
0
,
'portal_type'
:
compute_node
.
getPortalType
(),
'reference'
:
compute_node
.
getReference
(),
u'since'
:
u'%s'
%
self
.
created_at
,
u'state'
:
u'start_requested'
,
u'text'
:
u'#access OK'
,
u'user'
:
u'SlapOS Master'
}
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
self
.
tic
()
# Retest so cache is evaludated
news_dict
=
compute_node
.
ComputeNode_getNewsDict
()
self
.
assertEqual
(
_decode_with_json
(
news_dict
),
_decode_with_json
(
expected_news_dict
))
class
TestComputerNetwork_getNewsDict
(
TestSlapOSHalJsonStyleMixin
):
class
TestComputerNetwork_getNewsDict
(
TestSlapOSHalJsonStyleMixin
):
def
test
(
self
):
def
test
(
self
):
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSNetwork.zpt
View file @
369e8d56
...
@@ -154,12 +154,12 @@
...
@@ -154,12 +154,12 @@
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -206,12 +206,12 @@
...
@@ -206,12 +206,12 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -227,12 +227,12 @@
...
@@ -227,12 +227,12 @@
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServer.zpt
View file @
369e8d56
...
@@ -224,12 +224,12 @@
...
@@ -224,12 +224,12 @@
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -245,22 +245,22 @@
...
@@ -245,22 +245,22 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Available')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Available')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Available')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Available')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -290,12 +290,12 @@
...
@@ -290,12 +290,12 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Available')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Available')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Available')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Available')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServerUpgradeDecision.zpt
View file @
369e8d56
...
@@ -408,12 +408,12 @@
...
@@ -408,12 +408,12 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Available')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Available')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Available')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Available')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -443,12 +443,12 @@
...
@@ -443,12 +443,12 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Available')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Available')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Available')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Available')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSService.zpt
View file @
369e8d56
...
@@ -253,22 +253,22 @@
...
@@ -253,22 +253,22 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Stopped')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Stopped')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Stopped')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Stopped')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Stopped')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Stopped')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Stopped')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Stopped')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -328,22 +328,22 @@
...
@@ -328,22 +328,22 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServiceFastInputSlave.zpt
View file @
369e8d56
...
@@ -328,12 +328,12 @@
...
@@ -328,12 +328,12 @@
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -354,23 +354,23 @@
...
@@ -354,23 +354,23 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -390,22 +390,22 @@
...
@@ -390,22 +390,22 @@
</tal:block>
</tal:block>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -483,22 +483,22 @@
...
@@ -483,22 +483,22 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Destroyed')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServiceSlave.zpt
View file @
369e8d56
...
@@ -144,12 +144,12 @@
...
@@ -144,12 +144,12 @@
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a
[contains(text(), 'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span
[contains(text(), 'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -170,23 +170,23 @@
...
@@ -170,23 +170,23 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -210,22 +210,22 @@
...
@@ -210,22 +210,22 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Stopped')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Stopped')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Stopped')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Stopped')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -246,22 +246,22 @@
...
@@ -246,22 +246,22 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave Only')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave Only')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -281,22 +281,22 @@
...
@@ -281,22 +281,22 @@
</tal:block>
</tal:block>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Destroyed')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Destroyed')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Destroyed')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
a[contains(text(),
'Slave')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-color-white')]//
span[contains(text(),
'Slave')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSSite.zpt
View file @
369e8d56
...
@@ -179,23 +179,23 @@
...
@@ -179,23 +179,23 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'leaflet-pane')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'leaflet-pane')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'leaflet-pane')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'leaflet-pane')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -212,34 +212,34 @@
...
@@ -212,34 +212,34 @@
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@class, 'leaflet-pane')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'leaflet-pane')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//div[contains(@class, 'leaflet-pane')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//div[contains(@class, 'leaflet-pane')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<!-- Check on listbox -->
<!-- Check on listbox -->
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
assertElementPresent
</td>
<td>
assertElementPresent
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
a
[contains(text(), 'Node')]
</td>
<td>
//td//div[contains(@class, 'main-status')]//div[contains(@class, 'ui-btn-ok')]//
span
[contains(text(), 'Node')]
</td>
<td></td>
<td></td>
</tr>
</tr>
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSTestParameterEditorPostRawJSON.zpt
View file @
369e8d56
...
@@ -65,7 +65,11 @@
...
@@ -65,7 +65,11 @@
<td>
//textarea[@name="text_content"]
</td>
<td>
//textarea[@name="text_content"]
</td>
<td>
<
?xml version=
"
1.0
"
encoding=
"
UTF-8
"
?
><
instance
><
parameter id=
"
_
">
{
"
simple-string-in-json
"
:
"
1024
"
}
<
/parameter
><
/instance
>
</td>
<td>
<
?xml version=
"
1.0
"
encoding=
"
UTF-8
"
?
><
instance
><
parameter id=
"
_
">
{
"
simple-string-in-json
"
:
"
1024
"
}
<
/parameter
><
/instance
>
</td>
</tr>
</tr>
<tr>
<td>
pause
</td>
<td>
500
</td>
<td>
500
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSParameterCommonTemplate/macros/click_proceed_and_wait_for_hash"
/>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSParameterCommonTemplate/macros/click_proceed_and_wait_for_hash"
/>
<tr>
<tr>
...
...
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSTestParameterEditorXMLRequired.zpt
View file @
369e8d56
...
@@ -46,7 +46,18 @@
...
@@ -46,7 +46,18 @@
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
'gadget_erp5_page_slap_parameter_form.html')]//select[@name="software_type"]
</td>
<td>
Required Example
</td>
<td>
Required Example
</td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//button[contains(@class, "ui-icon-spinner")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementNotPresent
</td>
<td>
//div[contains(@data-gadget-url,
'gadget_erp5_page_slap_parameter_form.html')]//button[contains(@class, "ui-icon-spinner")]
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//input[@name="//simple-string" and @type="text"]
</td>
<td>
//input[@name="//simple-string" and @type="text"]
</td>
...
@@ -77,6 +88,12 @@
...
@@ -77,6 +88,12 @@
<td>
//select[@name="//simple-string-with-enum"]
</td>
<td>
//select[@name="//simple-string-with-enum"]
</td>
<td>
simple string B
</td>
<td>
simple string B
</td>
</tr>
</tr>
<tr>
<td>
fireEvent
</td>
<td>
//input[@name="//simple-string" and @type="text"]
</td>
<td>
change
</td>
</tr>
<tr>
<tr>
<td>
type
</td>
<td>
type
</td>
<td>
//input[@name="//simple-string" and @type="text"]
</td>
<td>
//input[@name="//simple-string" and @type="text"]
</td>
...
@@ -87,6 +104,11 @@
...
@@ -87,6 +104,11 @@
<td>
//select[@name="//simple-string-with-enum"]
</td>
<td>
//select[@name="//simple-string-with-enum"]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
fireEvent
</td>
<td>
//input[@name="//simple-string" and @type="text"]
</td>
<td>
change
</td>
</tr>
<tr>
<tr>
<td>
fireEvent
</td>
<td>
fireEvent
</td>
<td>
//input[@name="//simple-string" and @type="text"]
</td>
<td>
//input[@name="//simple-string" and @type="text"]
</td>
...
...
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