[Zope-Checkins]
CVS: Zope/lib/python/Products/PluginIndexes/KeywordIndex
- KeywordIndex.py:1.17
Andreas Jung
andreas at andreas-jung.com
Tue Apr 20 10:31:15 EDT 2004
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/KeywordIndex
In directory cvs.zope.org:/tmp/cvs-serv9130/lib/python/Products/PluginIndexes/KeywordIndex
Modified Files:
KeywordIndex.py
Log Message:
zLOG -> logging
=== Zope/lib/python/Products/PluginIndexes/KeywordIndex/KeywordIndex.py 1.16 => 1.17 ===
--- Zope/lib/python/Products/PluginIndexes/KeywordIndex/KeywordIndex.py:1.16 Thu Jan 8 02:28:37 2004
+++ Zope/lib/python/Products/PluginIndexes/KeywordIndex/KeywordIndex.py Tue Apr 20 10:30:44 2004
@@ -12,8 +12,7 @@
##############################################################################
from types import StringType, UnicodeType
-
-from zLOG import LOG, ERROR
+from logging import getLogger
from BTrees.OOBTree import OOSet, difference
from Globals import DTMLFile
@@ -22,6 +21,8 @@
from Products.PluginIndexes.common.UnIndex import UnIndex
from Products.PluginIndexes.common import safe_callable
+LOG = getLogger('Zope.KeywordIndex')
+
class KeywordIndex(UnIndex):
__implements__ = (PluggableIndex.UniqueValueIndex,
@@ -121,8 +122,8 @@
try:
del self._unindex[documentId]
except KeyError:
- LOG('UnKeywordIndex', ERROR, 'Attempt to unindex nonexistent'
- ' document id %s' % documentId)
+ LOG.error('Attempt to unindex nonexistent'
+ ' document id %s' % documentId)
index_html = DTMLFile('dtml/index', globals())
More information about the Zope-Checkins
mailing list