2006-08-24 Alex Roitman <shura@gramps-project.org>

* src/plugins/ChangeTypes.py (run_tool): Properly set the new type.



svn: r7252
This commit is contained in:
Alex Roitman 2006-08-24 19:41:08 +00:00
parent 187ed06537
commit 635b6f11da
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2006-08-24 Alex Roitman <shura@gramps-project.org>
* src/plugins/ChangeTypes.py (run_tool): Properly set the new type.
2006-08-23 Alex Roitman <shura@gramps-project.org> 2006-08-23 Alex Roitman <shura@gramps-project.org>
* src/DataViews/_PersonView.py (person_removed): Properly create * src/DataViews/_PersonView.py (person_removed): Properly create
and pass the filter when searchbar is enabled (not sidebar). and pass the filter when searchbar is enabled (not sidebar).

View File

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