diff options
| author | Christophe Simonis <chs@tinyerp.com> | 2008-10-27 14:59:31 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@tinyerp.com> | 2008-10-27 14:59:31 +0100 |
| commit | 08933b02004cf1843e5bbf2bdde86e9806c88f0e (patch) | |
| tree | 8b490d30c204935ac687d7a5e0d3cf1590099908 | |
| parent | 7617bf421c87f10b338214002d178a7e5e0b7c8c (diff) | |
browse_null objects doesn't fail anymore when accessing its attributes
bzr revid: chs@tinyerp.com-20081027135931-2772tugct3p1u3rx
| -rw-r--r-- | bin/osv/orm.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 62d414c1eb3..554006565a0 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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 |
