From d7c6eebeec41a19819b02c77c6488f5dc1f9002f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 6 Mar 2022 18:01:59 +0100 Subject: [PATCH] Manage None as value of PYSON In issue11280 review393771002 (grafted from bf883a4cc971cbb9c4654e3685aa54af56ab2548) --HG-- branch : 6.0 --- proteus/pyson.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proteus/pyson.py b/proteus/pyson.py index 0740e0a892..0f2ed608c6 100644 --- a/proteus/pyson.py +++ b/proteus/pyson.py @@ -509,7 +509,10 @@ class In(PYSON): @staticmethod def eval(dct, context): - return dct['k'] in dct['v'] + if dct['v']: + return dct['k'] in dct['v'] + else: + return False class Date(PYSON):