doc/book/en/devrepo/repo/hooks.rst
branchstable
changeset 8981 26fddf8d65d0
parent 8670 f02139297beb
child 9184 b982e88e4836
--- 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