Commit 885ccc87 authored by Bartek Górny's avatar Bartek Górny

If conversion was successful, call postConversion script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11780 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d21dbb09
......@@ -70,6 +70,8 @@
<key> <string>_body</string> </key>
<value> <string>msg=context.convert()\n
context.log(script.getId(),msg)\n
if msg[0]==0: # if everything was ok\n
context.OOoDocument_postConversion()\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url()+\'/view?portal_status_message=\'+str(msg[1]))\n
</string> </value>
</item>
......@@ -117,8 +119,8 @@ return context.REQUEST.RESPONSE.redirect(context.absolute_url()+\'/view?portal_s
<string>context</string>
<string>msg</string>
<string>script</string>
<string>str</string>
<string>_getitem_</string>
<string>str</string>
</tuple>
</value>
</item>
......
422
\ No newline at end of file
425
\ 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