* src/plugins/ChangeTypes.py (on_apply_clicked): Remove extra

unicode conversion.


svn: r7229
This commit is contained in:
Alex Roitman 2006-08-22 04:58:17 +00:00
parent 041e762a91
commit 19ba55bd9f
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
2006-08-21 Alex Roitman <shura@gramps-project.org>
* src/plugins/ChangeTypes.py (on_apply_clicked): Remove extra
unicode conversion.
* src/plugins/Checkpoint.py (__init__): Assign dbstate.
2006-08-21 Don Allingham <don@gramps-project.org>

View File

@ -152,9 +152,9 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow):
def on_apply_clicked(self,obj):
# Need to store English names for later comparison
self.options.handler.options_dict['fromtype'] = EventType._I2EMAP[
EventType._S2IMAP[unicode(self.auto1.child.get_text())]]
EventType._S2IMAP[self.auto1.child.get_text()]]
self.options.handler.options_dict['totype'] = EventType._I2EMAP[
EventType._S2IMAP[unicode(self.auto2.child.get_text())]]
EventType._S2IMAP[self.auto2.child.get_text()]]
modified,msg = self.run_tool(cli=False)
OkDialog(_('Change types'),msg,self.window)