Document: Better dbg message of content indexers.
authorP. Christeas <p_christ@hol.gr>
Thu, 12 Aug 2010 11:09:29 +0000 (14:09 +0300)
committerP. Christeas <p_christ@hol.gr>
Thu, 12 Aug 2010 11:09:29 +0000 (14:09 +0300)
bzr revid: p_christ@hol.gr-20100812110929-hyy3oe0dmxkwxja4

addons/document/content_index.py

index d6012e6..e3b3791 100644 (file)
@@ -98,7 +98,9 @@ class indexer(object):
 
     def _doIndexFile(self,fpath):
         raise NhException("Content not handled here")
-        
+
+    def __repr__(self):
+        return "<indexer %s.%s>" %(self.__module__, self.__class__.__name__)
         
 
 def mime_match(mime, mdict):
@@ -128,7 +130,7 @@ class contentIndex(object):
             f = True
             
         if f:
-            self.__logger.debug('Register content indexer: %s', obj)
+            self.__logger.debug('Register content indexer: %r', obj)
         if not f:
             raise Exception("Your indexer should at least suport a mimetype or extension")