Fix documentation for zmq pub/sub hooks and configuration stable
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 23 May 2013 14:38:43 +0200
branchstable
changeset 8981 26fddf8d65d0
parent 8980 c0b82dbcf6a3
child 8982 6bc1c1b4473a
Fix documentation for zmq pub/sub hooks and configuration Closes #2897177
doc/book/en/devrepo/repo/hooks.rst
--- a/doc/book/en/devrepo/repo/hooks.rst	Fri May 17 16:25:48 2013 +0200
+++ b/doc/book/en/devrepo/repo/hooks.rst	Thu May 23 14:38:43 2013 +0200
@@ -186,7 +186,7 @@
       def __call__(self):
           def callback(msg):
               self.info('received message: %s', ' '.join(msg))
-          self.repo.app_instances_bus.subscribe('hello', callback)
+          self.repo.app_instances_bus.add_subscription('hello', callback)
 
 .. sourcecode:: python
 
@@ -195,9 +195,9 @@
       self._cw.repo.app_instances_bus.publish(['hello', 'world'])
 
 The `zmq-address-pub` configuration variable contains the address used
-by the instance for sending messages, e.g. `zmqpickle-tcp://*:1234`.  The
+by the instance for sending messages, e.g. `tcp://*:1234`.  The
 `zmq-address-sub` variable contains a comma-separated list of addresses
-to listen on, e.g. `zmqpickle-tcp://localhost:1234, zmqpickle-tcp://192.168.1.1:2345`.
+to listen on, e.g. `tcp://localhost:1234, tcp://192.168.1.1:2345`.
 
 
 Hooks writing tips