diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-07-07 02:27:00 +0300 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-07-07 02:27:00 +0300 |
| commit | 1927431e0bf256503fbdcf282008a7b45f449559 (patch) | |
| tree | c546f88b8b3fe68f35f96d4be2a89cc55b0742f0 /addons/document/document_storage.py | |
| parent | 950058dae348bfb856ce5cf9c120822d7a147f6f (diff) | |
Document: remove debug calls from trunk code.
That code would only work in trunk-xrg.
bzr revid: p_christ@hol.gr-20100706232700-x56f57gqhzupfphq
Diffstat (limited to 'addons/document/document_storage.py')
| -rw-r--r-- | addons/document/document_storage.py | 4 |
1 files changed, 0 insertions, 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': |
