Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
ea4e80d9
Commit
ea4e80d9
authored
Apr 18, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: Missing change on script
parent
9b920c16
Pipeline
#20890
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/Alarm_renewSoftwareInstanceCertificate.py
..._administration/Alarm_renewSoftwareInstanceCertificate.py
+6
-13
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/Alarm_renewSoftwareInstanceCertificate.xml
...administration/Alarm_renewSoftwareInstanceCertificate.xml
+4
-0
No files found.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/Alarm_renewSoftwareInstanceCertificate.py
View file @
ea4e80d9
# Example code:
context
.
getPortalObject
().
portal_catalog
.
searchAndActivate
(
method_id
=
'SoftwareInstance_renewCertificate'
,
# Import a standard function, and get the HTML request and response objects.
activate_kw
=
dict
(
tag
=
tag
,
priority
=
5
),
from
Products.PythonScripts.standard
import
html_quote
portal_type
=
"Software Instance"
,
request
=
container
.
REQUEST
validation_state
=
"validated"
,
response
=
request
.
response
**
{
"slap_item.slap_state"
:
[
"start_requested"
,
"stop_requested"
]})
# Return a string identifying this script.
print
"This is the"
,
script
.
meta_type
,
'"%s"'
%
script
.
getId
(),
if
script
.
title
:
print
"(%s)"
%
html_quote
(
script
.
title
),
print
"in"
,
container
.
absolute_url
()
return
printed
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/Alarm_renewSoftwareInstanceCertificate.xml
View file @
ea4e80d9
...
@@ -48,6 +48,10 @@
...
@@ -48,6 +48,10 @@
</object>
</object>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
tag, fixit, **kw
</string>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Alarm_renewSoftwareInstanceCertificate
</string>
</value>
<value>
<string>
Alarm_renewSoftwareInstanceCertificate
</string>
</value>
...
...
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