Commit 2a072475 authored by Tristan Cavelier's avatar Tristan Cavelier

Revert "XXX erp5_dms:" to have nice diff output

This reverts commit 6394078f.
parent 32461b7b
......@@ -53,8 +53,7 @@
<value> <string>from ZODB.POSException import ConflictError\n
from Products.ERP5.Document.Document import ConversionError\n
from Products.ERP5Type.Log import log\n
if context.getExternalProcessingState() == \'converted\':\n
return \n
\n
message = None\n
try:\n
return context.updateBaseMetadata(**kw)\n
......@@ -75,7 +74,7 @@ isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPos
if isTransitionPossible(context, \'conversion_failed\'):\n
# mark document as conversion failed if not already done by convertToBaseFormat\n
context.conversionFailed(comment=message)\n
elif context.getExternalProcessingState() not in (\'converted\', \'empty\'):\n
else:\n
# just save problem message in workflow history\n
context.processConversionFailed(comment=message)\n
log(\'%s %s\' %(context.getRelativeUrl(), message))\n
......
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