From 1927431e0bf256503fbdcf282008a7b45f449559 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Wed, 7 Jul 2010 02:27:00 +0300 Subject: [PATCH] Document: remove debug calls from trunk code. That code would only work in trunk-xrg. bzr revid: p_christ@hol.gr-20100706232700-x56f57gqhzupfphq --- addons/document/document_storage.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/document/document_storage.py b/addons/document/document_storage.py index aeea5f99011..809c3c83be8 100644 --- a/addons/document/document_storage.py +++ b/addons/document/document_storage.py @@ -285,14 +285,10 @@ class document_storage(osv.osv): self._doclog.warning( "ir.attachment #%d does not have a filename, but is at filestore, fix it!" % ira.id) raise IOError(errno.ENOENT, 'No file can be located') fpath = os.path.join(boo.path, ira.store_fname) - if self._debug: - self._doclog.debug("Trying to read \"%s\".."% fpath) return nodefd_file(file_node, path=fpath, mode=mode) elif boo.type == 'db': # TODO: we need a better api for large files - if self._debug: - self._doclog.debug("Trying to obtain db_datas for ir.attachment[%d]", ira.id) return nodefd_db64(file_node, ira_browse=ira, mode=mode) elif boo.type == 'realstore':