Revert 10874 changes to _FilterParser.py
svn: r10878
This commit is contained in:
parent
437bde6e5c
commit
6b2b52552d
@ -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'
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user