Commit bc6deb80 authored by Łukasz Nowak's avatar Łukasz Nowak

- fix: context in workflow scripts is workflow tool, object being processed is...

- fix: context in workflow scripts is workflow tool, object being processed is in state_change['object']

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42616 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3bbeb07c
...@@ -51,11 +51,12 @@ ...@@ -51,11 +51,12 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># revoke certificate\n <value> <string># revoke certificate\n
software_instance = state_change[\'object\']\n
context.getPortalObject().portal_certificate_authority\\\n context.getPortalObject().portal_certificate_authority\\\n
.revokeCertificate(context.getDestinationReference())\n .revokeCertificate(software_instance.getDestinationReference())\n
\n \n
# remove certificate from SI\n # remove certificate from SI\n
context.edit(\n software_instance.edit(\n
ssl_key=None,\n ssl_key=None,\n
ssl_certificate=None,\n ssl_certificate=None,\n
)\n )\n
...@@ -110,6 +111,8 @@ if packing_list.getPortalObject().portal_workflow.isTransitionPossible(packing_l ...@@ -110,6 +111,8 @@ if packing_list.getPortalObject().portal_workflow.isTransitionPossible(packing_l
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getitem_</string>
<string>software_instance</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string> <string>None</string>
......
195 196
\ No newline at end of file \ No newline at end of file
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