From fb1b50d952cfe873a4be3656839b86b60a36327d Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Thu, 2 Sep 2010 06:31:03 +0000
Subject: [PATCH] Sorry, the conditional was reverse.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38117 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Tool/WebServiceTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/Tool/WebServiceTool.py b/product/ERP5Type/Tool/WebServiceTool.py
index aa406c7b6b..0f80135a41 100644
--- a/product/ERP5Type/Tool/WebServiceTool.py
+++ b/product/ERP5Type/Tool/WebServiceTool.py
@@ -39,7 +39,7 @@ connection_plugin_registry = {}
 
 def registerConnectionPlugin(name, klass, ignore_duplicate=False):
   if not ignore_duplicate:
-    if name not in connection_plugin_registry:
+    if name in connection_plugin_registry:
       raise ValueError('The connection plugin %r has already been registered in the registry %r' % (name, connection_plugin_registry))
   connection_plugin_registry[name] = klass
 
-- 
2.30.9