On Sat, Aug 15, 2009 at 1:41 PM, Jim Fulton<j...@zope.com> wrote:
> I'm trying to get the ZTK KGS tests working with Python 2.6.  The
> tests generate lots of deprecation warnings in part because lots of
> packages use zope.app.zcmlfiles and zope.app.zcmlfiles includes
> globalmodules.zcml in zope.app.security and globalmodules.zcml causes
> lots of standard modules to get imported, including mhlib, which is
> deprecated in Python 2.6. Whew. :)
> I know we want to stop using zope.app.zcmlfiles.  This make take a
> while.  Too big a job for right now.
> We should stop using globalmodules.zcml.  It's too expensive, too
> scary, and causing this deprecation warning. If I just delete it's
> contents, no ztk tests break. :/  I see 3 options, from lowest to
> highest (but maybe still low) risk:
> A. Suck it up and live with the deprecation warnings until we get rid
> of zope.app.zcmlfiles
> B. Remove the security declaration for mhlib from globalmodules.zcml.
> Is anyone actually building web applications that publish MH mail
> folders?
> C. Stop including globalmodules.zcml from zope.app.zcmlfiles
> Opinions? FWIW, I vote for B.

globalmodules also imports deprecated modules sets and multifile. :(

I just noticed that globalmodules uses a trick to avoid importing md5
and sha in Python 2.6 by checking whether json is importable.  I'll
use this same trick for sets, multifile, and mhlib. :)


Jim Fulton
Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to