From 964c3752cb57d9c80f941dec76bec95dc116c491 Mon Sep 17 00:00:00 2001 From: Tomasz Melcer <liori@exroot.org> Date: Sat, 9 Jun 2007 12:21:35 +0000 Subject: [PATCH] Dataforms: DataRecord(extend=None) != DataRecord() --- src/common/dataforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dataforms.py b/src/common/dataforms.py index 6c6817d6a1..6e9522e2e5 100644 --- a/src/common/dataforms.py +++ b/src/common/dataforms.py @@ -13,7 +13,7 @@ class WrongFieldValue(Error): pass # when we get xmpp.Node which contains bad fi class ExtendedNode(xmpp.Node, object): @classmethod def __new__(cls, *a, **b): - if 'extend' not in b.keys(): + if 'extend' not in b.keys() or not b[keys]: return object.__new__(cls) extend = b['extend'] -- GitLab