Document: remove debug calls from trunk code.

That code would only work in trunk-xrg.

bzr revid: p_christ@hol.gr-20100706232700-x56f57gqhzupfphq
This commit is contained in:
P. Christeas
2010-07-07 02:27:00 +03:00
parent 950058dae3
commit 1927431e0b
-4
View File
@@ -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':