--- a/__init__.py Wed Aug 05 17:33:40 2009 +0200
+++ b/__init__.py Wed Aug 05 18:18:12 2009 +0200
@@ -324,12 +324,12 @@
Typical usage to register a callback::
>>> from cubicweb import CW_EVENT_MANAGER
- >>> CW_EVENT_MANAGER.bind('after-source-reload', mycallback)
+ >>> CW_EVENT_MANAGER.bind('after-registry-reload', mycallback)
Typical usage to emit an event::
>>> from cubicweb import CW_EVENT_MANAGER
- >>> CW_EVENT_MANAGER.emit('after-source-reload')
+ >>> CW_EVENT_MANAGER.emit('after-registry-reload')
emit() accepts an additional context parameter that will be passed
to the callback if specified (and only in that case)
@@ -353,7 +353,7 @@
"""decorator to ease event / callback binding
>>> from cubicweb import onevent
- >>> @onevent('before-source-reload')
+ >>> @onevent('before-registry-reload')
... def mycallback():
... print 'hello'
...