Commit ea4e80d9 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Missing change on script

parent 9b920c16
# Example code:
# Import a standard function, and get the HTML request and response objects.
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
response = request.response
# 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
context.getPortalObject().portal_catalog.searchAndActivate(
method_id='SoftwareInstance_renewCertificate',
activate_kw=dict(tag=tag, priority=5),
portal_type="Software Instance",
validation_state="validated",
**{"slap_item.slap_state": ["start_requested", "stop_requested"]})
......@@ -48,6 +48,10 @@
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>tag, fixit, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Alarm_renewSoftwareInstanceCertificate</string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment