[Zope-dev] Re: [Checkins] SVN: Zope/branches/2.9/lib/python/ Replace bulk of uses of 'zLOG' with equivalent Python 'logging' module usage.

Tres Seaver tseaver at palladion.com
Mon Jun 26 11:59:49 EDT 2006


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

Andreas Jung wrote:
> 
> 
> --On 25. Juni 2006 16:32:04 +0200 "Stefan H. Holek" <stefan at epy.co.at>
> wrote:
> 
>> This, BTW, breaks CMF 1.5 on Zope 2.9. Not sure I/you should care  though
>> ;-)
>>
>> Traceback (most recent call last):
>>    File "/home/stefan/autotest/temp/python24-zope29-cmf15/Products/
>> CMFActionIcons/__init__.py", line 19, in ?
>>      from Products.CMFCore.DirectoryView import registerDirectory
>>    File "/home/stefan/autotest/temp/python24-zope29-cmf15/Products/
>> CMFCore/__init__.py", line 21, in ?
>>      import MembershipTool, WorkflowTool, CatalogTool, DiscussionTool
>>    File "/home/stefan/autotest/temp/python24-zope29-cmf15/Products/
>> CMFCore/CatalogTool.py", line 23, in ?
>>      from Products.ZCatalog.ZCatalog import LOG
>> ImportError: cannot import name LOG
>>
> 
> Tres,
> 
> you replace all 'LOG' vars with 'logger'. Is there a reason for this
> replacement? We've been using LOG through out the complete Z2 core..we
> should remain consistent in some way.

Hmm, the API of the logger objects is not consisistent with the old log
objects.  I don't know why CMF is importing that name from the catalog,
but I guess we need to leave it there for BBB.


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

iD8DBQFEoAR1+gerLs4ltQ4RApUIAKCBNda8NW538LZzWWijpQgJOT0FOACgiA9y
jxcAyITHNUylCcf74k7kPSE=
=stG6
-----END PGP SIGNATURE-----


More information about the Zope-Dev mailing list