[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server - dual_mode_channel.py:1.1.2.10
Shane Hathaway
shane@cvs.zope.org
Sat, 12 Jan 2002 19:45:00 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Server
In directory cvs.zope.org:/tmp/cvs-serv22800
Modified Files:
Tag: Zope-3x-branch
dual_mode_channel.py
Log Message:
Create the trigger immediately for alternate socket maps.
=== Zope3/lib/python/Zope/Server/dual_mode_channel.py 1.1.2.9 => 1.1.2.10 ===
class SocketMapWithTrigger (UserDict):
- trigger = None
-
- def pull_trigger(self):
- t = self.trigger
- if t is None:
- t = ASMTrigger(self)
- self.trigger = t
- t.pull_trigger()
+ def __init__(self):
+ UserDict.__init__(self)
+ self.pull_trigger = ASMTrigger(self).pull_trigger
class dual_mode_channel (AlternateSocketMapMixin, asyncore.dispatcher):