* src/Filters/_FilterParser.py (startElement): Upgrade existing

custom_filters file from Media to MediaObject.


svn: r7237
This commit is contained in:
Alex Roitman 2006-08-22 17:50:56 +00:00
parent 3698662a64
commit ead038c2a1
2 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,6 @@
2006-08-22 Alex Roitman <shura@gramps-project.org> 2006-08-22 Alex Roitman <shura@gramps-project.org>
* src/Filters/_FilterParser.py (startElement): Upgrade existing
custom_filters file from Media to MediaObject.
* src/Selectors/_SelectEvent.py (get_handle_column): Correct * src/Selectors/_SelectEvent.py (get_handle_column): Correct
handle column number. handle column number.
* configure.in: Reflect directory change. * configure.in: Reflect directory change.

View File

@ -59,6 +59,8 @@ class FilterParser(handler.ContentHandler):
if tag == "object": if tag == "object":
if attrs.has_key('type'): if attrs.has_key('type'):
self.namespace = attrs['type'] self.namespace = attrs['type']
if self.namespace == 'Media':
self.namespace = 'MediaObject'
else: else:
self.namespace = "generic" self.namespace = "generic"
elif tag == "filter": elif tag == "filter":