[Erp5-report] r38117 yo - /erp5/trunk/products/ERP5Type/Tool/WebServiceTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 2 08:31:04 CEST 2010


Author: yo
Date: Thu Sep  2 08:31:03 2010
New Revision: 38117

URL: http://svn.erp5.org?rev=38117&view=rev
Log:
Sorry, the conditional was reverse.

Modified:
    erp5/trunk/products/ERP5Type/Tool/WebServiceTool.py

Modified: erp5/trunk/products/ERP5Type/Tool/WebServiceTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Tool/WebServiceTool.py?rev=38117&r1=38116&r2=38117&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Tool/WebServiceTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Tool/WebServiceTool.py [utf8] Thu Sep  2 08:31:03 2010
@@ -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
 




More information about the Erp5-report mailing list