[Zope3-checkins] SVN: Zope3/trunk/src/zope/interface/adapter.txt
fix typos
Fred L. Drake, Jr.
fred at zope.com
Tue May 25 15:42:52 EDT 2004
Log message for revision 24970:
fix typos
-=-
Modified: Zope3/trunk/src/zope/interface/adapter.txt
===================================================================
--- Zope3/trunk/src/zope/interface/adapter.txt 2004-05-25 19:23:56 UTC (rev 24969)
+++ Zope3/trunk/src/zope/interface/adapter.txt 2004-05-25 19:42:52 UTC (rev 24970)
@@ -336,15 +336,14 @@
--------
A handler is a subscriber factory that doesn't produce any normal
-output. It returns None. A handler is unlike adapters in that it does
-all of it;s work the factory is called.
+output. It returns None. A handler is unlike adapters in that it does
+all of it's work when the factory is called.
To register a handler, simply provide None as the provided interface:
>>> def handler(event):
... print 'handler', event
-
+
>>> registry.subscribe([IR1], None, handler)
>>> registry.subscriptions([IR1], None) == [handler]
True
-
More information about the Zope3-Checkins
mailing list