From 6b2b52552db9992b1c1586e7b2e12c4e7b720df1 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Fri, 18 Jul 2008 14:06:42 +0000 Subject: [PATCH] Revert 10874 changes to _FilterParser.py svn: r10878 --- src/Filters/_FilterParser.py | 2 +- src/GrampsDbUtils/_GedcomStageOne.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Filters/_FilterParser.py b/src/Filters/_FilterParser.py index 44ddce4d6..d70636464 100644 --- a/src/Filters/_FilterParser.py +++ b/src/Filters/_FilterParser.py @@ -57,7 +57,7 @@ class FilterParser(handler.ContentHandler): def startElement(self, tag, attrs): if tag == "object": - if 'type' in attrs: + if attrs.has_key('type'): self.namespace = attrs['type'] if self.namespace == 'Media': self.namespace = 'MediaObject' diff --git a/src/GrampsDbUtils/_GedcomStageOne.py b/src/GrampsDbUtils/_GedcomStageOne.py index 2f0ad38bf..c01782592 100644 --- a/src/GrampsDbUtils/_GedcomStageOne.py +++ b/src/GrampsDbUtils/_GedcomStageOne.py @@ -79,6 +79,7 @@ def add_to_list(table, key, value): Add the value to the table entry associated with key. If the entry does not exist, it is added. """ + print type(table) if key in table: table[key].append(value) else: