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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
a291a420
Commit
a291a420
authored
Aug 30, 2022
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: drop gadget_erp5_page_slap_instance_tree_view
parent
7dacedd8
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2 additions
and
1556 deletions
+2
-1556
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_html.html
...le/rjs_gadget_erp5_page_slap_instance_tree_view_html.html
+0
-59
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_html.xml
...ule/rjs_gadget_erp5_page_slap_instance_tree_view_html.xml
+0
-342
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
+0
-553
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
+0
-338
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/InstanceTree_edit.py
...m/portal_skins/slapos_hal_json_style/InstanceTree_edit.py
+0
-32
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/InstanceTree_edit.xml
.../portal_skins/slapos_hal_json_style/InstanceTree_edit.xml
+0
-62
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/InstanceTree_getConnectionParameterList.py
...hal_json_style/InstanceTree_getConnectionParameterList.py
+0
-13
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/InstanceTree_getConnectionParameterList.xml
...al_json_style/InstanceTree_getConnectionParameterList.xml
+0
-62
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstance_getConnectionParameterList.py
...json_style/SoftwareInstance_getConnectionParameterList.py
+0
-29
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstance_getConnectionParameterList.xml
...son_style/SoftwareInstance_getConnectionParameterList.xml
+0
-62
master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list
...jio/bt/template_keep_last_workflow_history_only_path_list
+2
-2
master/bt5/slapos_jio/bt/template_path_list
master/bt5/slapos_jio/bt/template_path_list
+0
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_html.html
deleted
100644 → 0
View file @
7dacedd8
<!DOCTYPE html>
<html>
<!--
data-i18n=The Status
data-i18n=Status
data-i18n=Data updated.
data-i18n=Title
data-i18n=Reference
data-i18n=Type
data-i18n=Enabled
data-i18n=Disabled
data-i18n=Auto Upgrade
data-i18n=Ask Confirmation before Upgrade
data-i18n=Never Upgrade
data-i18n=State
data-i18n=Modification Date
data-i18n=Parameter
data-i18n=Value
data-i18n=Short Title
data-i18n=Description
data-i18n=Software Type
data-i18n=Software Release
data-i18n=Configuration Parameter
data-i18n=The name of a document in ERP5
data-i18n=Current Project
data-i18n=Current Organisation
data-i18n=Monitoring Status
data-i18n=Monitoring
data-i18n=Upgrade
data-i18n=Connection Parameters
data-i18n=Associated Tickets
data-i18n=Instances
data-i18n=Instance Tree:
-->
<head>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
<title>
Site List
</title>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"gadget_erp5_page_slap_instance_tree_view.js"
type=
"text/javascript"
></script>
</head>
<body>
<form
class=
"save_form ui-body-c"
novalidate
>
<button
type=
"submit"
class=
"ui-btn ui-btn-b ui-btn-inline
ui-icon-edit ui-btn-icon-right ui-screen-hidden"
></button>
<div
data-gadget-url=
"gadget_erp5_form.html"
data-gadget-scope=
"form_view"
data-gadget-sandbox=
"public"
>
</div>
</form>
</body>
</html>
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_html.xml
deleted
100644 → 0
View file @
7dacedd8
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_page_slap_instance_tree_view.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
rjs_gadget_erp5_page_slap_instance_tree_view_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget SlapOS Instance Tree View
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
003
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1508779385.14
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
982.32800.19263.45721
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1584117279.68
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1508779358.14
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_js.js
deleted
100644 → 0
View file @
7dacedd8
/*global window, rJS, RSVP, jIO, btoa, JSON */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
,
jIO
,
btoa
,
JSON
)
{
"
use strict
"
;
rJS
(
window
)
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
'
jio_allDocs
'
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.
allowPublicAcquisition
(
"
jio_allDocs
"
,
function
(
param_list
)
{
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
))
{
value
=
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
result
.
data
.
rows
[
i
].
value
.
SoftwareInstance_getNewsDict
=
{
field_gadget_param
:
{
css_class
:
""
,
description
:
gadget
.
description_translation
,
hidden
:
0
,
"
default
"
:
""
,
renderjs_extra
:
JSON
.
stringify
({
jio_key
:
value_jio_key
,
result
:
value
}),
key
:
"
status
"
,
url
:
"
gadget_slapos_status.html
"
,
title
:
gadget
.
title_translation
,
type
:
"
GadgetField
"
}
};
result
.
data
.
rows
[
i
].
value
[
"
listbox_uid:list
"
]
=
{
key
:
"
listbox_uid:list
"
,
value
:
2713
};
}
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
connection_key
"
))
{
value
=
result
.
data
.
rows
[
i
].
value
.
connection_key
;
result
.
data
.
rows
[
i
].
value
.
connection_key
=
{
field_gadget_param
:
{
css_class
:
""
,
"
default
"
:
value
,
key
:
"
status
"
,
editable
:
1
,
url
:
"
gadget_slapos_label_listbox_field.html
"
,
title
:
gadget
.
title_translation
,
type
:
"
GadgetField
"
}
};
value
=
result
.
data
.
rows
[
i
].
value
.
connection_value
;
result
.
data
.
rows
[
i
].
value
.
connection_value
=
{
field_gadget_param
:
{
css_class
:
""
,
"
default
"
:
value
,
key
:
"
status
"
,
editable
:
1
,
url
:
"
gadget_slapos_label_listbox_field.html
"
,
title
:
gadget
.
title_translation
,
type
:
"
GadgetField
"
}
};
result
.
data
.
rows
[
i
].
value
[
"
listbox_uid:list
"
]
=
{
key
:
"
listbox_uid:list
"
,
value
:
2713
};
}
}
return
result
;
});
})
.
declareMethod
(
'
updateDocument
'
,
function
(
param_list
)
{
var
gadget
=
this
,
property
,
content
=
param_list
,
doc
=
{};
for
(
property
in
content
)
{
if
((
content
.
hasOwnProperty
(
property
))
&&
// Remove undefined keys added by Gadget fields
(
property
!==
"
undefined
"
)
&&
// Remove listboxes UIs
(
property
!==
"
listbox_uid:list
"
)
&&
// Remove default_*:int keys added by ListField
!
(
property
.
endsWith
(
"
:int
"
)
&&
property
.
startsWith
(
"
default_
"
)))
{
doc
[
property
]
=
content
[
property
];
}
}
return
gadget
.
getSetting
(
"
hateoas_url
"
)
.
push
(
function
(
hateoas_url
)
{
return
gadget
.
jio_putAttachment
(
gadget
.
state
.
jio_key
,
hateoas_url
+
gadget
.
state
.
jio_key
+
"
/InstanceTree_edit
"
,
doc
);
});
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
return
this
.
changeState
({
jio_key
:
options
.
jio_key
,
doc
:
options
.
doc
,
editable
:
1
});
})
.
onEvent
(
'
submit
'
,
function
()
{
var
gadget
=
this
;
return
gadget
.
notifySubmitting
()
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
'
form_view
'
);
})
.
push
(
function
(
form_gadget
)
{
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
});
});
})
.
declareMethod
(
"
triggerSubmit
"
,
function
()
{
return
this
.
element
.
querySelector
(
'
button[type="submit"]
'
).
click
();
})
.
onStateChange
(
function
()
{
var
gadget
=
this
,
page_title_translation
,
translation_list
=
[
"
The Status
"
,
"
Status
"
,
"
Data updated.
"
,
"
Title
"
,
"
Reference
"
,
"
Type
"
,
"
Enabled
"
,
"
Disabled
"
,
"
Auto Upgrade
"
,
"
Ask Confirmation before Upgrade
"
,
"
Never Upgrade
"
,
"
State
"
,
"
Modification Date
"
,
"
Parameter
"
,
"
Value
"
,
"
Short Title
"
,
"
Description
"
,
"
Software Type
"
,
"
Software Release
"
,
"
Configuration Parameter
"
,
"
The name of a document in ERP5
"
,
"
Current Project
"
,
"
Current Organisation
"
,
"
Monitoring Status
"
,
"
Monitoring
"
,
"
Upgrade
"
,
"
Connection Parameters
"
,
"
Associated Tickets
"
,
"
Instances
"
,
"
Instance Tree:
"
,
"
Software Logo
"
,
"
Node
"
];
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
getSetting
(
"
hateoas_url
"
);
})
.
push
(
function
(
hateoas_url
)
{
return
gadget
.
jio_getAttachment
(
gadget
.
state
.
jio_key
,
hateoas_url
+
gadget
.
state
.
jio_key
+
'
/InstanceTree_getDefaultImageAbsoluteUrl
'
,
{});
})
.
push
(
function
(
blob
)
{
return
jIO
.
util
.
readBlobAsText
(
blob
);
})
.
push
(
function
(
result
)
{
gadget
.
state
.
doc
.
list_image
=
result
.
srcElement
.
result
;
return
RSVP
.
all
([
gadget
.
getDeclaredGadget
(
'
form_view
'
),
gadget
.
getTranslationList
(
translation_list
)
]);
})
.
push
(
function
(
result
)
{
gadget
.
description_translation
=
result
[
1
][
0
];
gadget
.
title_translation
=
result
[
1
][
1
];
gadget
.
message_translation
=
result
[
1
][
2
];
page_title_translation
=
result
[
1
][
29
];
var
form_gadget
=
result
[
0
],
column_list
=
[
[
'
title
'
,
result
[
1
][
3
]],
[
'
reference
'
,
result
[
1
][
4
]],
[
'
portal_type
'
,
result
[
1
][
5
]],
[
'
SoftwareInstance_getAllocationInformation
'
,
result
[
1
][
31
]],
[
'
SoftwareInstance_getReportedState
'
,
result
[
1
][
11
]],
[
'
SoftwareInstance_getNewsDict
'
,
result
[
1
][
1
]]
],
monitor_scope_list
=
[[
''
,
''
],
[
result
[
1
][
6
],
'
enabled
'
],
[
result
[
1
][
7
],
'
disabled
'
]
],
upgrade_scope_list
=
[[
''
,
''
],
[
result
[
1
][
8
],
'
auto
'
],
[
result
[
1
][
9
],
'
ask_confirmation
'
],
[
result
[
1
][
10
],
'
never
'
]
],
ticket_column_list
=
[
[
'
title
'
,
result
[
1
][
1
]],
[
'
reference
'
,
result
[
1
][
4
]],
[
'
modification_date
'
,
result
[
1
][
12
]],
[
'
translated_simulation_state_title
'
,
result
[
1
][
11
]]
],
connection_column_list
=
[
[
'
connection_key
'
,
result
[
1
][
13
]],
[
'
connection_value
'
,
result
[
1
][
14
]]
],
parameter_dict
=
{
'
json_url
'
:
gadget
.
state
.
doc
.
url_string
.
split
(
'
?
'
)[
0
]
+
"
.json
"
,
'
softwaretype
'
:
gadget
.
state
.
doc
.
source_reference
,
'
shared
'
:
gadget
.
state
.
doc
.
root_slave
?
1
:
0
,
'
parameter_hash
'
:
btoa
(
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
)
};
if
(
gadget
.
state
.
doc
.
text_content
!==
undefined
)
{
parameter_dict
.
parameter_hash
=
btoa
(
gadget
.
state
.
doc
.
text_content
);
}
return
gadget
.
getSetting
(
"
hateoas_url
"
)
.
push
(
function
(
url
)
{
return
form_gadget
.
render
({
erp5_document
:
{
"
_embedded
"
:
{
"
_view
"
:
{
"
my_title
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
3
],
"
default
"
:
gadget
.
state
.
doc
.
title
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
title
"
,
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
"
my_short_title
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
15
],
"
default
"
:
gadget
.
state
.
doc
.
short_title
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
1
,
"
key
"
:
"
short_title
"
,
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
"
my_description
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
16
],
"
default
"
:
gadget
.
state
.
doc
.
description
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
1
,
"
key
"
:
"
description
"
,
"
hidden
"
:
0
,
"
type
"
:
"
TextAreaField
"
},
"
my_reference
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
4
],
"
default
"
:
gadget
.
state
.
doc
.
reference
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
reference
"
,
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
"
my_slap_state_title
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
11
],
"
default
"
:
gadget
.
state
.
doc
.
slap_state_title
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
slap_state_title
"
,
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
"
my_url_string
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
18
],
"
default
"
:
"
<a target=_blank href=
"
+
gadget
.
state
.
doc
.
url_string
+
"
>
"
+
gadget
.
state
.
doc
.
url_string
+
"
</a>
"
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
url_string
"
,
"
hidden
"
:
0
,
"
type
"
:
"
EditorField
"
},
"
my_text_content
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
19
],
"
default
"
:
""
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
1
,
"
url
"
:
"
gadget_erp5_page_slap_parameter_form.html
"
,
"
sandbox
"
:
""
,
"
key
"
:
"
text_content
"
,
"
hidden
"
:
0
,
"
type
"
:
"
GadgetField
"
,
"
renderjs_extra
"
:
JSON
.
stringify
(
parameter_dict
)
},
"
my_source_project
"
:
{
"
description
"
:
result
[
1
][
20
],
"
title
"
:
result
[
1
][
21
],
"
default
"
:
gadget
.
state
.
doc
.
source_project_title
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
source_project_title
"
,
"
hidden
"
:
gadget
.
state
.
doc
.
source_project_title
?
0
:
1
,
"
type
"
:
"
StringField
"
},
"
my_source
"
:
{
"
description
"
:
result
[
1
][
20
],
"
title
"
:
result
[
1
][
22
],
"
default
"
:
gadget
.
state
.
doc
.
source_title
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
source_title
"
,
"
hidden
"
:
gadget
.
state
.
doc
.
source_title
?
0
:
1
,
"
type
"
:
"
StringField
"
},
"
my_monitoring_status
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
23
],
"
default
"
:
""
,
"
renderjs_extra
"
:
JSON
.
stringify
({
jio_key
:
gadget
.
state
.
jio_key
,
result
:
gadget
.
state
.
doc
.
news
}),
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
url
"
:
"
gadget_slapos_status.html
"
,
"
sandbox
"
:
""
,
"
key
"
:
"
monitoring_status
"
,
"
hidden
"
:
0
,
"
type
"
:
"
GadgetField
"
},
"
my_monitor_scope
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
24
],
"
default
"
:
gadget
.
state
.
doc
.
monitor_scope
,
"
css_class
"
:
""
,
"
items
"
:
monitor_scope_list
,
"
required
"
:
0
,
"
editable
"
:
1
,
"
key
"
:
"
monitor_scope
"
,
"
hidden
"
:
gadget
.
state
.
doc
.
root_slave
?
1
:
0
,
"
type
"
:
"
ListField
"
},
"
my_upgrade_scope
"
:
{
"
description
"
:
""
,
"
title
"
:
result
[
1
][
25
],
"
default
"
:
gadget
.
state
.
doc
.
upgrade_scope
,
"
css_class
"
:
""
,
"
items
"
:
upgrade_scope_list
,
"
required
"
:
0
,
"
editable
"
:
1
,
"
key
"
:
"
upgrade_scope
"
,
"
hidden
"
:
gadget
.
state
.
doc
.
root_slave
?
1
:
0
,
"
type
"
:
"
ListField
"
},
"
connection_listbox
"
:
{
"
column_list
"
:
connection_column_list
,
"
show_anchor
"
:
0
,
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable_column_list
"
:
[],
"
key
"
:
"
slap_connection_listbox
"
,
"
lines
"
:
30
,
"
list_method
"
:
"
InstanceTree_getConnectionParameterList
"
,
"
list_method_template
"
:
url
+
"
ERP5Document_getHateoas?mode=search&
"
+
"
list_method=InstanceTree_getConnectionParameterList&relative_url=
"
+
gadget
.
state
.
jio_key
+
"
&default_param_json=eyJpZ25vcmVfdW5rbm93bl9jb2x1bW5zIjogdHJ1ZX0={&query,select_list*,limit*,sort_on*,local_roles*}
"
,
"
query
"
:
"
urn:jio:allDocs?query=
"
,
"
portal_type
"
:
[],
"
search_column_list
"
:
connection_column_list
,
"
sort_column_list
"
:
connection_column_list
,
"
sort
"
:
[[
"
connection_key
"
,
"
ascending
"
]],
"
title
"
:
result
[
1
][
26
],
"
type
"
:
"
ListBox
"
},
"
ticket_listbox
"
:
{
"
column_list
"
:
ticket_column_list
,
"
show_anchor
"
:
0
,
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable_column_list
"
:
[],
"
key
"
:
"
slap_ticket_listbox
"
,
"
lines
"
:
10
,
relative_url
:
gadget
.
state
.
jio_key
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
"
urn:jio:allDocs?query=portal_type%3A%20%28%20%22
"
+
"
Support Request
"
+
"
%22%2C%20%22
"
+
"
Upgrade Decision
"
+
"
%22%29%20AND%20
"
+
"
default_or_child_aggregate_reference
"
+
"
%3A%22
"
+
gadget
.
state
.
doc
.
reference
+
"
%22%20AND%20
"
+
"
simulation_state
"
+
"
%3A%28%22
"
+
"
validated
"
+
"
%22%2C%22
"
+
"
suspended
"
+
"
%22%2C%22
"
+
"
confirmed
"
+
"
%22%2C%22
"
+
"
started
"
+
"
%22%2C%22
"
+
"
stopped
"
+
"
%22%29
"
,
"
portal_type
"
:
[],
"
search_column_list
"
:
ticket_column_list
,
"
sort_column_list
"
:
ticket_column_list
,
"
sort
"
:
[[
"
modification_date
"
,
"
descending
"
]],
"
title
"
:
result
[
1
][
27
],
"
type
"
:
"
ListBox
"
},
"
listbox
"
:
{
"
column_list
"
:
column_list
,
"
show_anchor
"
:
0
,
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable_column_list
"
:
[],
"
key
"
:
"
slap_project_compute_node_listbox
"
,
"
lines
"
:
20
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
"
urn:jio:allDocs?query=%28portal_type%3A%28%22
"
+
"
Slave Instance
"
+
"
%22%2C%20%22
"
+
"
Software Instance
"
+
"
%22%29%20AND%20%28
"
+
"
default_specialise_reference%3A%22
"
+
gadget
.
state
.
doc
.
reference
+
"
%22%29%20AND%20%28
"
+
"
validation_state%3A%22validated%22%29%29
"
,
"
portal_type
"
:
[],
"
search_column_list
"
:
column_list
,
"
sort_column_list
"
:
column_list
,
"
sort
"
:
[[
"
title
"
,
"
ascending
"
]],
"
title
"
:
result
[
1
][
28
],
"
type
"
:
"
ListBox
"
},
"
my_list_image
"
:
{
"
css_class
"
:
""
,
"
default
"
:
gadget
.
state
.
doc
.
list_image
+
"
?quality=75.0&display=thumbnail&format=png
"
,
"
description
"
:
""
,
"
editable
"
:
1
,
"
hidden
"
:
0
,
"
key
"
:
"
list_image
"
,
"
required
"
:
0
,
"
title
"
:
result
[
1
][
30
],
"
type
"
:
"
ImageField
"
}
}},
"
_links
"
:
{
"
type
"
:
{
// form_list display portal_type in header
name
:
""
}
}
},
form_definition
:
{
group_list
:
[[
"
left
"
,
[[
"
my_title
"
],
[
"
my_reference
"
],
[
"
my_short_title
"
],
[
"
my_description
"
]]
],
[
"
right
"
,
[[
"
my_slap_state_title
"
],
[
'
my_monitoring_status
'
],
[
'
my_monitor_scope
'
],
[
'
my_upgrade_scope
'
],
[
'
my_source_project
'
],
[
'
my_source
'
]]
],
[
"
center
"
,
[[
"
my_url_string
"
],
[
"
my_list_image
"
]]
],
[
"
bottom
"
,
[[
"
ticket_listbox
"
],
[
"
connection_listbox
"
],
[
"
my_text_content
"
],
[
"
listbox
"
]]
]]
}
});
});
})
.
push
(
function
()
{
return
gadget
.
updatePanel
({
jio_key
:
"
instance_tree_module
"
});
})
.
push
(
function
()
{
var
fast_input_dict
=
{
command
:
"
display
"
,
options
:
{
page
:
"
slap_intent
"
,
intent
:
"
request
"
,
shared
:
1
,
software_type
:
gadget
.
state
.
doc
.
source_reference
,
software_release
:
gadget
.
state
.
doc
.
url_string
,
sla_xml
:
gadget
.
state
.
doc
.
fast_input_dict
.
sla_xml
,
strict
:
"
True
"
}
};
return
RSVP
.
all
([
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
editable
:
true
}}),
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
"
page
"
:
"
slap_add_related_ticket
"
}}),
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
"
page
"
:
"
slap_start_instance_tree
"
}}),
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
"
page
"
:
"
slap_stop_instance_tree
"
}}),
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
"
page
"
:
"
slap_destroy_instance_tree
"
}}),
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
page
:
"
slap_rss_ticket
"
}}),
gadget
.
getUrlFor
({
command
:
'
history_previous
'
}),
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
page
:
"
slap_transfer_instance_tree
"
}}),
gadget
.
getUrlFor
(
fast_input_dict
)
]);
})
.
push
(
function
(
url_list
)
{
var
header_dict
=
{
page_title
:
page_title_translation
+
"
"
+
gadget
.
state
.
doc
.
title
,
ticket_url
:
url_list
[
1
],
destroy_url
:
url_list
[
4
],
rss_url
:
url_list
[
5
],
selection_url
:
url_list
[
6
],
save_action
:
true
};
if
(
gadget
.
state
.
doc
.
is_owner
!==
undefined
)
{
header_dict
.
transfer_url
=
url_list
[
7
];
}
if
(
gadget
.
state
.
doc
.
slap_state
===
"
start_requested
"
)
{
header_dict
.
stop_url
=
url_list
[
3
];
}
if
(
gadget
.
state
.
doc
.
slap_state
===
"
stop_requested
"
)
{
header_dict
.
start_url
=
url_list
[
2
];
}
if
(
gadget
.
state
.
doc
.
fast_input_dict
.
enabled
!==
undefined
)
{
header_dict
.
add_shared_url
=
url_list
[
8
];
}
if
(
!
gadget
.
state
.
editable
)
{
header_dict
.
edit_content
=
url_list
[
0
];
}
return
gadget
.
updateHeader
(
header_dict
);
});
});
}(
window
,
rJS
,
RSVP
,
jIO
,
btoa
,
JSON
));
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_js.xml
deleted
100644 → 0
View file @
7dacedd8
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_page_slap_instance_tree_view.js
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
rjs_gadget_erp5_page_slap_instance_tree_view_js
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget SlapOS Instance Tree View
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
003
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1508779428.24
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1010.44015.51861.27016
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1692924255.67
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1508779404.08
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/InstanceTree_edit.py
deleted
100644 → 0
View file @
7dacedd8
request
=
context
.
REQUEST
edit_kw
=
{}
if
monitor_scope
is
not
None
and
monitor_scope
!=
context
.
getMonitorScope
():
edit_kw
[
"monitor_scope"
]
=
monitor_scope
if
upgrade_scope
is
not
None
and
upgrade_scope
!=
context
.
getUpgradeScope
():
edit_kw
[
"upgrade_scope"
]
=
upgrade_scope
if
short_title
!=
context
.
getShortTitle
():
edit_kw
[
"short_title"
]
=
short_title
if
description
!=
context
.
getDescription
():
edit_kw
[
"description"
]
=
description
if
edit_kw
.
keys
():
context
.
edit
(
**
edit_kw
)
def
isSoftwareTypeChanged
(
software_type
):
base_type
=
[
'RootSoftwareInstance'
,
'default'
]
current_software_type
=
context
.
getSourceReference
()
if
software_type
in
base_type
and
current_software_type
in
base_type
:
return
False
if
software_type
in
[
None
,
""
]:
return
False
return
current_software_type
!=
software_type
if
'software_type'
in
request
and
isSoftwareTypeChanged
(
request
[
'software_type'
]):
raise
ValueError
(
"Change Software Type is forbidden."
)
if
context
.
getTextContent
()
!=
text_content
:
context
.
InstanceTree_requestPerson
(
instance_xml
=
text_content
)
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/InstanceTree_edit.xml
deleted
100644 → 0
View file @
7dacedd8
<?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>
text_content, short_title, description, monitor_scope=None, upgrade_scope=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
InstanceTree_edit
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/InstanceTree_getConnectionParameterList.py
deleted
100644 → 0
View file @
7dacedd8
title
=
context
.
getTitle
()
result
=
[]
found
=
False
for
instance
in
context
.
getSuccessorValueList
():
if
(
instance
.
getTitle
()
==
title
)
and
(
instance
.
getSlapState
()
!=
'destroy_requested'
):
found
=
True
break
if
found
:
result
=
instance
.
SoftwareInstance_getConnectionParameterList
(
relative_url
=
context
.
getRelativeUrl
(),
raw
=
raw
)
return
result
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/InstanceTree_getConnectionParameterList.xml
deleted
100644 → 0
View file @
7dacedd8
<?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>
raw=False, **kwargs
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
InstanceTree_getConnectionParameterList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstance_getConnectionParameterList.py
deleted
100644 → 0
View file @
7dacedd8
from
Products.ERP5Type.Document
import
newTempBase
import
json
return_list
=
[]
try
:
connection_dict
=
context
.
getConnectionXmlAsDict
()
except
Exception
:
return
return_list
if
connection_dict
is
None
:
return
return_list
if
connection_dict
.
keys
()
==
[
"_"
]:
json_connection_dict
=
json
.
loads
(
connection_dict
[
"_"
])
if
isinstance
(
json_connection_dict
,
dict
):
connection_dict
=
json_connection_dict
portal
=
context
.
getPortalObject
()
if
relative_url
==
None
:
relative_url
=
context
.
getRelativeUrl
()
for
k
in
sorted
(
connection_dict
):
if
raw
:
d
=
{
"connection_key"
:
k
,
"connection_value"
:
connection_dict
[
k
]}
else
:
d
=
newTempBase
(
portal
,
relative_url
)
d
.
edit
(
connection_key
=
k
,
connection_value
=
connection_dict
[
k
])
return_list
.
append
(
d
)
return
return_list
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstance_getConnectionParameterList.xml
deleted
100644 → 0
View file @
7dacedd8
<?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>
relative_url=None, raw=False, **kwargs
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwareInstance_getConnectionParameterList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list
View file @
a291a420
...
...
@@ -46,8 +46,8 @@ web_page_module/rjs_gadget_erp5_page_slap_facebook_login_view_html
web_page_module/rjs_gadget_erp5_page_slap_facebook_login_view_js
web_page_module/rjs_gadget_erp5_page_slap_google_login_view_html
web_page_module/rjs_gadget_erp5_page_slap_google_login_view_js
web_page_module/rjs_gadget_erp5_page_slap_
instance_tree
_view_html
web_page_module/rjs_gadget_erp5_page_slap_
instance_tree
_view_js
web_page_module/rjs_gadget_erp5_page_slap_
access_denied
_view_html
web_page_module/rjs_gadget_erp5_page_slap_
access_denied
_view_js
web_page_module/rjs_gadget_erp5_page_slap_intent_html
web_page_module/rjs_gadget_erp5_page_slap_intent_js
web_page_module/rjs_gadget_erp5_page_slap_invalidate_login_html
...
...
master/bt5/slapos_jio/bt/template_path_list
View file @
a291a420
...
...
@@ -46,8 +46,6 @@ web_page_module/rjs_gadget_erp5_page_slap_facebook_login_view_html
web_page_module/rjs_gadget_erp5_page_slap_facebook_login_view_js
web_page_module/rjs_gadget_erp5_page_slap_google_login_view_html
web_page_module/rjs_gadget_erp5_page_slap_google_login_view_js
web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_html
web_page_module/rjs_gadget_erp5_page_slap_instance_tree_view_js
web_page_module/rjs_gadget_erp5_page_slap_intent_html
web_page_module/rjs_gadget_erp5_page_slap_intent_js
web_page_module/rjs_gadget_erp5_page_slap_intent_zh_html
...
...
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