changeset 1ab4b234f120 in proteus:6.2
details: https://hg.tryton.org/proteus?cmd=changeset&node=1ab4b234f120
description:
Manage None as value of PYSON In
issue11280
review393771002
(grafted from bf883a4cc971cbb9c4654e3685aa54af56ab2548)
diffstat:
proteus/pyson.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 094fdd8c4efe -r 1ab4b234f120 proteus/pyson.py
--- a/proteus/pyson.py Sun Mar 06 13:48:44 2022 +0100
+++ b/proteus/pyson.py Sun Mar 06 18:01:59 2022 +0100
@@ -515,7 +515,10 @@
@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):