From fe6806de576350e06a95229f652371b899e5f481 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 20 Dec 2013 01:28:54 -0500 Subject: [PATCH] Ability to use 'where ITEM in part.part.part' for the Query Gramplet --- gramps/gen/merge/diff.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gen/merge/diff.py b/gramps/gen/merge/diff.py index 3147b26dd..effcbc030 100644 --- a/gramps/gen/merge/diff.py +++ b/gramps/gen/merge/diff.py @@ -423,6 +423,9 @@ class Struct(object): def __len__(self): return len(self.struct) + def __contains__(self, item): + return item in self.struct + def __getattr__(self, attr): """ Called when getattr fails. Lookup attr in struct; returns Struct