projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd49b9
)
Document: Better dbg message of content indexers.
author
P. Christeas
<p_christ@hol.gr>
Thu, 12 Aug 2010 11:09:29 +0000
(14:09 +0300)
committer
P. 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
patch
|
blob
|
history
diff --git
a/addons/document/content_index.py
b/addons/document/content_index.py
index
d6012e6
..
e3b3791
100644
(file)
--- a/
addons/document/content_index.py
+++ b/
addons/document/content_index.py
@@
-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")