Fix documentation for zmq pub/sub hooks and configuration

Closes #2897177

authorJulien Cristau <julien.cristau@logilab.fr>
changeset26fddf8d65d0
branchstable
phasepublic
hiddenno
parent revision#c0b82dbcf6a3 [entity] improve deprecation messages
child revision#6bc1c1b4473a [zmq] make publish address optional
files modified by this revision
doc/book/en/devrepo/repo/hooks.rst
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1369312723 -7200
# Thu May 23 14:38:43 2013 +0200
# Branch stable
# Node ID 26fddf8d65d032d857ef2ba87789ed324cf4e9e2
# Parent c0b82dbcf6a3ecb7f917c15d7444fa724ce81663
Fix documentation for zmq pub/sub hooks and configuration

Closes #2897177

diff --git a/doc/book/en/devrepo/repo/hooks.rst b/doc/book/en/devrepo/repo/hooks.rst
@@ -184,22 +184,22 @@
1        __regid__ = 'foo_startup'
2 
3        def __call__(self):
4            def callback(msg):
5                self.info('received message: %s', ' '.join(msg))
6 -          self.repo.app_instances_bus.subscribe('hello', callback)
7 +          self.repo.app_instances_bus.add_subscription('hello', callback)
8 
9  .. sourcecode:: python
10 
11    def do_foo(self):
12        actually_do_foo()
13        self._cw.repo.app_instances_bus.publish(['hello', 'world'])
14 
15  The `zmq-address-pub` configuration variable contains the address used
16 -by the instance for sending messages, e.g. `zmqpickle-tcp://*:1234`.  The
17 +by the instance for sending messages, e.g. `tcp://*:1234`.  The
18  `zmq-address-sub` variable contains a comma-separated list of addresses
19 -to listen on, e.g. `zmqpickle-tcp://localhost:1234, zmqpickle-tcp://192.168.1.1:2345`.
20 +to listen on, e.g. `tcp://localhost:1234, tcp://192.168.1.1:2345`.
21 
22 
23  Hooks writing tips
24  ------------------
25