[Zope-ZEO] ZEO patches for NT

Jim Fulton jim@digicool.com
Tue, 11 Jul 2000 08:28:52 -0400


Jeffrey Kunce wrote:
> 
> >> 3)  In smac.py, replace line 90:
> >>     import asyncore, string, struct, zLOG, sys, Acquisition
> >> with these two lines:
> >>     from ZServer.medusa import asyncore
> >>     import string, struct, zLOG, sys, Acquisition
> 
> >I don't want to introduce a dependency on ZServer.
> 
> I just noticed that zeo\start.py attempts to import asyncore from ZServer first:
> 
>     try:
>         from ZServer.medusa import asyncore
>         sys.modules['asyncore']=asyncore
>     except: pass
> 
>   --Jeff

Right. This is a necessary hack. I consider start.py to be somewhat 
of an appendage, and am wiling to tolerate the dependency there. I 
don't want it it the core ZEO code.  

Note that I *should* be able to just copy asyncore to the ZEO 
package, however, asyncore relies on mutable global variales. :(
It's not enough that ZEO get the right version of asyncore.
All parts of an application must actually use the *same* 
instantiation of the asynore module. This causes alot of
headaches.

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.