* src/plugins/ChangeTypes.py (run_tool): Compare English strings.
svn: r7249
This commit is contained in:
parent
dfe1287d4f
commit
9211593549
@ -1,4 +1,5 @@
|
|||||||
2006-08-23 Alex Roitman <shura@gramps-project.org>
|
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
|
* src/Editors/_EditPerson.py (_image_callback): Take three
|
||||||
arguments; correctly call load_photo(); rebuild gallery.
|
arguments; correctly call load_photo(); rebuild gallery.
|
||||||
(load_photo): Name path variable as such, for clarity.
|
(load_photo): Name path variable as such, for clarity.
|
||||||
|
@ -126,7 +126,7 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow):
|
|||||||
if not event_ref.ref:
|
if not event_ref.ref:
|
||||||
continue
|
continue
|
||||||
event = self.db.get_event_from_handle(event_ref.ref)
|
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)
|
event.set_type(totype)
|
||||||
modified = modified + 1
|
modified = modified + 1
|
||||||
self.db.commit_event(event,self.trans)
|
self.db.commit_event(event,self.trans)
|
||||||
|
Loading…
Reference in New Issue
Block a user