From 47f1b7bebd66a88b2fcb97b231cf21c40a705569 Mon Sep 17 00:00:00 2001 From: ced <> Date: Thu, 26 Jul 2007 08:30:50 +0000 Subject: [PATCH] kernel: don't modify the args of the call _where_calc can not modify the args given in the call, need to copy it first bzr revid: ced-bd9bb054ebc906020858191f950a770b878e6fdb --- bin/osv/orm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 3f8c731b381..85af8e2c9b6 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -89,14 +89,19 @@ class except_orm(Exception): # # Readonly python database object browser class browse_null(object): + def __init__(self): self.id=False + def __getitem__(self, name): return False + def __int__(self): return False + def __str__(self): return '' + def __nonzero__(self): return False