* src/plugins/ChangeTypes.py (run_tool): Compare English strings.
svn: r7249
This commit is contained in:
parent
cc166bc590
commit
ddd39b682c
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user