# HG changeset patch # User Julien Cristau # Date 1369312723 -7200 # Node ID 26fddf8d65d032d857ef2ba87789ed324cf4e9e2 # Parent c0b82dbcf6a3ecb7f917c15d7444fa724ce81663 Fix documentation for zmq pub/sub hooks and configuration Closes #2897177 diff -r c0b82dbcf6a3 -r 26fddf8d65d0 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