[Checkins] SVN: zc.ngi/trunk/ Allow setHandler to be called multiple times, but only in response to

Jim Fulton jim at zope.com
Fri Sep 8 15:01:48 EDT 2006


Log message for revision 70075:
  Allow setHandler to be called multiple times, but only in response to
  a call from an implementation.
  

Changed:
  U   zc.ngi/trunk/src/zc/ngi/README.txt
  U   zc.ngi/trunk/src/zc/ngi/interfaces.py
  A   zc.ngi/trunk/todo.txt

-=-
Modified: zc.ngi/trunk/src/zc/ngi/README.txt
===================================================================
--- zc.ngi/trunk/src/zc/ngi/README.txt	2006-09-08 17:50:10 UTC (rev 70074)
+++ zc.ngi/trunk/src/zc/ngi/README.txt	2006-09-08 19:01:47 UTC (rev 70075)
@@ -60,7 +60,7 @@
 communicate with servers.  To do so, a client must be provided with an
 IConnector implemantation.  How this happens is outside the scope of
 the NGI.  An IConnector implementation could, for example, be provided
-via the Zope component architecture, or via package_resources entry
+via the Zope component architecture, or via pkg_resources entry
 points.
 
 Let's create a simple client that calls an echo server and verifies
@@ -252,7 +252,7 @@
 Server Control
 --------------
 
-The object returned from a listener is a IServerControl.  It provides
+The object returned from a listener is an IServerControl.  It provides
 access to the active connections:
 
     >>> list(listener.connections())

Modified: zc.ngi/trunk/src/zc/ngi/interfaces.py
===================================================================
--- zc.ngi/trunk/src/zc/ngi/interfaces.py	2006-09-08 17:50:10 UTC (rev 70074)
+++ zc.ngi/trunk/src/zc/ngi/interfaces.py	2006-09-08 19:01:47 UTC (rev 70075)
@@ -67,7 +67,9 @@
     def setHandler(handler):
         """Set the IConnectionHandler for a connection.
 
-        The handler can be set only once.
+        This methid can only be called in direct response to an
+        implementation call to a IConnectionHandler,
+        IClientConnectHandler, or IServer
         """
 
     def write(data):

Added: zc.ngi/trunk/todo.txt
===================================================================
--- zc.ngi/trunk/todo.txt	2006-09-08 17:50:10 UTC (rev 70074)
+++ zc.ngi/trunk/todo.txt	2006-09-08 19:01:47 UTC (rev 70075)
@@ -0,0 +1,2 @@
+- Need to change the async implementation to allow setHandler to be
+  called multiple times, but only from the main thread.


Property changes on: zc.ngi/trunk/todo.txt
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Checkins mailing list