* src/plugins/ChangeTypes.py (run_tool): Compare English strings.

svn: r7249
This commit is contained in:
Alex Roitman 2006-08-23 19:43:56 +00:00
parent cc166bc590
commit ddd39b682c
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2006-08-23 Alex Roitman <shura@gramps-project.org>
* src/plugins/ChangeTypes.py (run_tool): Compare English strings.
* src/Editors/_EditPerson.py (_image_callback): Take three
arguments; correctly call load_photo(); rebuild gallery.
(load_photo): Name path variable as such, for clarity.

View File

@ -126,7 +126,7 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow):
if not event_ref.ref:
continue
event = self.db.get_event_from_handle(event_ref.ref)
if str(event.get_type()) == fromtype:
if event.get_type().xml_str() == fromtype:
event.set_type(totype)
modified = modified + 1
self.db.commit_event(event,self.trans)