From 031f9211da9a66259c0f10cb5837aec4b26d4e8b Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 24 Aug 2006 19:41:08 +0000 Subject: [PATCH] 2006-08-24 Alex Roitman * src/plugins/ChangeTypes.py (run_tool): Properly set the new type. svn: r7252 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/ChangeTypes.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 23c5ff378..1edab8197 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-08-24 Alex Roitman + * src/plugins/ChangeTypes.py (run_tool): Properly set the new type. + 2006-08-23 Alex Roitman * src/DataViews/_PersonView.py (person_removed): Properly create and pass the filter when searchbar is enabled (not sidebar). diff --git a/gramps2/src/plugins/ChangeTypes.py b/gramps2/src/plugins/ChangeTypes.py index 4cab5bf5e..fb5e9f633 100644 --- a/gramps2/src/plugins/ChangeTypes.py +++ b/gramps2/src/plugins/ChangeTypes.py @@ -127,7 +127,7 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow): continue event = self.db.get_event_from_handle(event_ref.ref) if event.get_type().xml_str() == fromtype: - event.set_type(totype) + event.type.set_from_xml_str(totype) modified = modified + 1 self.db.commit_event(event,self.trans) if not cli: