Revert "Document API: meaningful error, when asking for directory data content."

This reverts commit 9e6e98fbf132f1c7ef795dee9d0eb3193332a5ee.

bzr revid: p_christ@hol.gr-20100713102744-rnu3vq3a2wjqmbyf
This commit is contained in:
P. Christeas 2010-07-13 13:27:44 +03:00
parent 83ff0d6757
commit e6cb0e4cf5
1 changed files with 2 additions and 3 deletions

View File

@ -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")