Revert 10874 changes to _FilterParser.py

svn: r10878
This commit is contained in:
Gerald Britton 2008-07-18 14:06:42 +00:00
parent 437bde6e5c
commit 6b2b52552d
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class FilterParser(handler.ContentHandler):
def startElement(self, tag, attrs): def startElement(self, tag, attrs):
if tag == "object": if tag == "object":
if 'type' in attrs: if attrs.has_key('type'):
self.namespace = attrs['type'] self.namespace = attrs['type']
if self.namespace == 'Media': if self.namespace == 'Media':
self.namespace = 'MediaObject' self.namespace = 'MediaObject'

View File

@ -79,6 +79,7 @@ def add_to_list(table, key, value):
Add the value to the table entry associated with key. If the entry Add the value to the table entry associated with key. If the entry
does not exist, it is added. does not exist, it is added.
""" """
print type(table)
if key in table: if key in table:
table[key].append(value) table[key].append(value)
else: else: