dbapi.py
changeset 8670 f02139297beb
parent 8669 62213a34726e
child 8673 8ea63a2cc2cc
--- a/dbapi.py	Mon Jan 21 18:01:25 2013 +0100
+++ b/dbapi.py	Tue Jan 22 18:16:20 2013 +0100
@@ -125,7 +125,7 @@
             return ns_get_proxy(nsid, defaultnsgroup=nsgroup, nshost=puri.netloc)
         except Exception, ex:
             raise ConnectionError(str(ex))
-    elif method == 'tcp': # use zmq (see zmq documentation)
+    elif method.startswith('zmqpickle-'):
         from cubicweb.zmqclient import ZMQRepositoryClient
         return ZMQRepositoryClient(uri)
     else: