From 396dda04b397a4c475367e6eb76dba98405aa275 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 28 Aug 2012 17:10:05 +0200
Subject: [PATCH] Use system event instead of raising.

---
 .../scripts/PayzenEvent_updateStatus.xml                       | 3 ++-
 master/bt5/vifib_payzen/bt/revision                            | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/master/bt5/vifib_payzen/WorkflowTemplateItem/portal_workflow/payzen_interface_workflow/scripts/PayzenEvent_updateStatus.xml b/master/bt5/vifib_payzen/WorkflowTemplateItem/portal_workflow/payzen_interface_workflow/scripts/PayzenEvent_updateStatus.xml
index 1c14a37cd..f5168ecd3 100644
--- a/master/bt5/vifib_payzen/WorkflowTemplateItem/portal_workflow/payzen_interface_workflow/scripts/PayzenEvent_updateStatus.xml
+++ b/master/bt5/vifib_payzen/WorkflowTemplateItem/portal_workflow/payzen_interface_workflow/scripts/PayzenEvent_updateStatus.xml
@@ -58,7 +58,8 @@ integration_tool = portal.restrictedTraverse(portal.portal_preferences.getPrefer
 \n
 transaction_id = integration_tool.getMappingFromCategory(\'causality/%s\' % payment_transaction.getRelativeUrl())\n
 if transaction_id == \'Causality/%s\' % payment_transaction.getRelativeUrl():\n
-  raise ValueError(\'Transaction not registered in payzen integration tool\')\n
+  payzen_event.confirm(comment=\'Transaction not registered in payzen integration tool\')\n
+  return\n
 transaction_id = transaction_id.split(\'/\')[1]\n
 transmissionDate, transactionId = transaction_id.split(\'_\')\n
 \n
diff --git a/master/bt5/vifib_payzen/bt/revision b/master/bt5/vifib_payzen/bt/revision
index 4e9e28848..4b6f9c39e 100644
--- a/master/bt5/vifib_payzen/bt/revision
+++ b/master/bt5/vifib_payzen/bt/revision
@@ -1 +1 @@
-63
\ No newline at end of file
+64
\ No newline at end of file
-- 
2.30.9