[Zope-dev] ZTK and Python 2.6, zope.app.zcmlfiles and zope.app.security globalmodules.zcml

Tres Seaver tseaver at palladion.com
Mon Aug 17 10:57:07 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Fulton wrote:
> On Sat, Aug 15, 2009 at 1:41 PM, Jim Fulton<jim at 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.

I vote for C (anybody who wants the 'globalmodules.zcml' behavior back
can add one line to their 'site.zcml;), but could live with B.  The ZTK
needs to impose as *little* policy as possible.



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKiW/D+gerLs4ltQ4RAsRkAJ92wrCmB+0huVOL5RyGSTxxGPEi1wCePHq3
nd8oHpxAFrEIFOAbAQBRuYA=
=A19m
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list