__init__.py
changeset 2705 30bcdbd92820
parent 2689 44f041222d0f
child 2790 968108e16066
child 2919 662f35236d1c
--- 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'
     ...