browse_null objects doesn't fail anymore when accessing its attributes

bzr revid: chs@tinyerp.com-20081027135931-2772tugct3p1u3rx
This commit is contained in:
Christophe Simonis
2008-10-27 14:59:31 +01:00
parent 7617bf421c
commit 08933b0200
+3
View File
@@ -90,6 +90,9 @@ class browse_null(object):
def __getitem__(self, name):
return False
def __getattr__(self, name):
return False # XXX: return self ?
def __int__(self):
return False