summaryrefslogtreecommitdiff
path: root/addons/document/nodes.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-07-13 13:27:44 +0300
committerP. Christeas <p_christ@hol.gr>2010-07-13 13:27:44 +0300
commite6cb0e4cf5c6ec58267fe6287750b5fed10700bb (patch)
treec14a09110258c651671c837b641b5fee7c69ed55 /addons/document/nodes.py
parent83ff0d67573a6f921cc9736c750cfb6f487b7a8a (diff)
Revert "Document API: meaningful error, when asking for directory data content."
This reverts commit 9e6e98fbf132f1c7ef795dee9d0eb3193332a5ee. bzr revid: p_christ@hol.gr-20100713102744-rnu3vq3a2wjqmbyf
Diffstat (limited to 'addons/document/nodes.py')
-rw-r--r--addons/document/nodes.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/document/nodes.py b/addons/document/nodes.py
index 345a104f806..0669ece73aa 100644
--- a/addons/document/nodes.py
+++ b/addons/document/nodes.py
@@ -27,7 +27,6 @@ from osv.orm import except_orm
import pooler
from tools.safe_eval import safe_eval
-import errno
import os
import time
@@ -226,7 +225,7 @@ class node_class(object):
return False
def get_data(self,cr):
- raise IOError(errno.EINVAL, 'no data for %s' % self.type)
+ raise TypeError('no data for %s'% self.type)
def open_data(self, cr, mode):
""" Open a node_descriptor object for this node.
@@ -240,7 +239,7 @@ class node_class(object):
For this class, there is no data, so no implementation. Each
child class that has data should override this.
"""
- raise IOError(errno.EINVAL, 'no data for %s' % self.type)
+ raise TypeError('no data for %s' % self.type)
def _get_storage(self,cr):
raise RuntimeError("no storage for base class")