[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - Catalog.py:1.117 CatalogBrains.py:1.10 ZCatalogIndexes.py:1.9

Andreas Jung andreas at andreas-jung.com
Wed Apr 14 04:20:25 EDT 2004


Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv18850/lib/python/Products/ZCatalog

Modified Files:
	Catalog.py CatalogBrains.py ZCatalogIndexes.py 
Log Message:
death to zLOG


=== Zope/lib/python/Products/ZCatalog/Catalog.py 1.116 => 1.117 ===
--- Zope/lib/python/Products/ZCatalog/Catalog.py:1.116	Fri Nov 28 11:46:12 2003
+++ Zope/lib/python/Products/ZCatalog/Catalog.py	Wed Apr 14 04:20:23 2004
@@ -17,7 +17,7 @@
 from MultiMapping import MultiMapping
 import Record
 from Missing import MV
-from zLOG import LOG, ERROR
+import logging
 
 from Lazy import LazyMap, LazyFilter, LazyCat, LazyValues
 from CatalogBrains import AbstractCatalogBrain, NoBrainer
@@ -30,6 +30,8 @@
 from bisect import bisect
 from random import randint
 
+LOG = logging.getLogger('ZCatalog')
+
 try:
     from DocumentTemplate.cDocumentTemplate import safe_callable
 except ImportError:
@@ -231,8 +233,7 @@
         _index = names.index(name)
 
         if not self.schema.has_key(name):
-            LOG('Catalog', ERROR, ('delColumn attempted to delete '
-                                   'nonexistent column %s.' % str(name)))
+            LOG.error('delColumn attempted to delete nonexistent column %s.' % str(name))
             return
 
         names.remove(name)
@@ -390,8 +391,7 @@
                 blah = x.index_object(index, object, threshold)
                 total = total + blah
             else:
-                LOG('Catalog', ERROR, ('catalogObject was passed '
-                                       'bad index object %s.' % str(x)))
+                LOG.error('catalogObject was passed bad index object %s.' % str(x))
 
         return total
 
@@ -424,9 +424,9 @@
             try: self.__len__.change(-1)
             except AttributeError: pass # No managed length
         else:
-            LOG('Catalog', ERROR, ('uncatalogObject unsuccessfully '
-                                   'attempted to uncatalog an object '
-                                   'with a uid of %s. ' % str(uid)))
+            LOG.error('uncatalogObject unsuccessfully '
+                      'attempted to uncatalog an object '
+                      'with a uid of %s. ' % str(uid))
 
 
     def uniqueValuesFor(self, name):


=== Zope/lib/python/Products/ZCatalog/CatalogBrains.py 1.9 => 1.10 ===
--- Zope/lib/python/Products/ZCatalog/CatalogBrains.py:1.9	Tue Mar 23 16:26:38 2004
+++ Zope/lib/python/Products/ZCatalog/CatalogBrains.py	Wed Apr 14 04:20:23 2004
@@ -14,8 +14,6 @@
 __version__ = "$Revision$"[11:-2]
 
 import Acquisition, Record
-import zLOG
-import sys
 
 class AbstractCatalogBrain(Record.Record, Acquisition.Implicit):
     """Abstract base brain that handles looking up attributes as


=== Zope/lib/python/Products/ZCatalog/ZCatalogIndexes.py 1.8 => 1.9 ===
--- Zope/lib/python/Products/ZCatalog/ZCatalogIndexes.py:1.8	Wed Aug 14 18:25:15 2002
+++ Zope/lib/python/Products/ZCatalog/ZCatalogIndexes.py	Wed Apr 14 04:20:23 2004
@@ -24,11 +24,11 @@
 from OFS.SimpleItem import SimpleItem
 from OFS.ObjectManager import ObjectManager, IFAwareObjectManager
 
-import os, sys, time
+import os, sys, time 
 
 from Acquisition import Implicit
 from Persistence import Persistent
-from zLOG import LOG, ERROR
+
 from Products.PluginIndexes.common.PluggableIndex import PluggableIndexInterface
 
 _marker = []




More information about the Zope-Checkins mailing list