browse_null objects doesn't fail anymore when accessing its attributes
bzr revid: chs@tinyerp.com-20081027135931-2772tugct3p1u3rx
This commit is contained in:
parent
7617bf421c
commit
08933b0200
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue