* src/Sources.py: Unicode conversion from gtk.TextView.
* src/Witness.py: Unicode conversion from gtk.TextView. * src/Report.py: Unicode conversion from gtk.TextView. * src/NameEdit.py: Unicode conversion from gtk.TextView. * src/Marriage.py: Unicode conversion from gtk.TextView. * src/ImageSelect.py: Unicode conversion from gtk.TextView. * src/EventEdit.py: Unicode conversion from gtk.TextView. * src/EditSource.py: Unicode conversion from gtk.TextView. * src/EditPlace.py: Unicode conversion from gtk.TextView. * src/EditPerson.py: Unicode conversion from gtk.TextView. * src/AutoComp.py: Unicode conversion from gtk.TextView. * src/AttrEdit.py: Unicode conversion from gtk.TextView. * src/AddrEdit.py: Unicode conversion from gtk.TextView. * src/plugins/BookReport.py: Unicode conversion from gtk.Entry and gtk.TextView. * src/plugins/ChangeTypes.py: Unicode conversion. * src/plugins/EventCmp.py: Unicode conversion. * src/plugins/FilterEditor.py: Unicode conversion. * src/plugins/SimpleBookTitle.py: Unicode conversion. * src/plugins/TimeLine.py: Unicode conversion. * src/plugins/WebPage.py: Unicode conversion. * src/plugins/WriteGedcom.py: Unicode conversion. * src/plugins/WritePkg.py: Unicode conversion. * src/plugins/eval.py: Unicode conversion. * src/plugins/soundgen.py: Unicode conversion. svn: r2536
This commit is contained in:
@@ -863,7 +863,7 @@ class BookReportSelector:
|
||||
Save the current book in the xml booklist file.
|
||||
"""
|
||||
self.book_list = BookList(self.file)
|
||||
name = self.name_entry.get_text()
|
||||
name = unicode(self.name_entry.get_text())
|
||||
self.book.set_name(name)
|
||||
self.book.set_dbname(self.db.getSavePath())
|
||||
self.book_list.set_book(name,self.book)
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"Database Processing/Rename personal event types"
|
||||
|
||||
import os
|
||||
@@ -73,8 +75,8 @@ class ChangeTypes:
|
||||
|
||||
def on_apply_clicked(self,obj):
|
||||
modified = 0
|
||||
original = self.glade.get_widget("original_text").get_text()
|
||||
new = self.glade.get_widget("new_text").get_text()
|
||||
original = unicode(self.glade.get_widget("original_text").get_text())
|
||||
new = unicode(self.glade.get_widget("new_text").get_text())
|
||||
|
||||
for person in self.db.getPersonMap().values():
|
||||
for event in person.getEventList():
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"Analysis and Exploration/Compare individual events"
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@@ -321,7 +323,7 @@ class DisplayChart:
|
||||
|
||||
def on_save_clicked(self,obj):
|
||||
|
||||
name = self.form.get_widget("filename").get_text()
|
||||
name = unicode(self.form.get_widget("filename").get_text())
|
||||
|
||||
pstyle = BaseDoc.PaperStyle("junk",10,10)
|
||||
doc = OpenSpreadSheet.OpenSpreadSheet(pstyle,BaseDoc.PAPER_PORTRAIT)
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"""Generic Filtering Routines"""
|
||||
|
||||
__author__ = "Don Allingham"
|
||||
@@ -121,7 +123,7 @@ class MyFilters(gtk.Combo):
|
||||
|
||||
def get_text(self):
|
||||
if self.ok:
|
||||
return self.entry.get_text()
|
||||
return unicode(self.entry.get_text())
|
||||
else:
|
||||
return ""
|
||||
|
||||
@@ -176,7 +178,7 @@ class MyID(gtk.HBox):
|
||||
self.set_text(val.getId())
|
||||
|
||||
def get_text(self):
|
||||
return self.entry.get_text()
|
||||
return unicode(self.entry.get_text())
|
||||
|
||||
def set_text(self,val):
|
||||
try:
|
||||
@@ -203,7 +205,7 @@ class MySelect(gtk.Combo):
|
||||
self.show()
|
||||
|
||||
def get_text(self):
|
||||
return self.entry.get_text()
|
||||
return unicode(self.entry.get_text())
|
||||
|
||||
def set_text(self,val):
|
||||
self.entry.set_text(val)
|
||||
@@ -346,7 +348,7 @@ class FilterEditor:
|
||||
self.draw_rules()
|
||||
|
||||
def filter_name_changed(self,obj):
|
||||
name = self.fname.get_text()
|
||||
name = unicode(self.fname.get_text())
|
||||
self.ok.set_sensitive(len(name) != 0)
|
||||
|
||||
def select_row(self,obj):
|
||||
@@ -367,11 +369,11 @@ class FilterEditor:
|
||||
self.top.destroy()
|
||||
|
||||
def on_ok_clicked(self,obj):
|
||||
n = self.fname.get_text().strip()
|
||||
n = unicode(self.fname.get_text()).strip()
|
||||
if n == '':
|
||||
return
|
||||
self.filter.set_name(n)
|
||||
self.filter.set_comment(self.comment.get_text().strip())
|
||||
self.filter.set_comment(unicode(self.comment.get_text()).strip())
|
||||
for f in self.filterdb.get_filters()[:]:
|
||||
if n == f.get_name():
|
||||
self.filterdb.get_filters().remove(f)
|
||||
@@ -556,13 +558,13 @@ class FilterEditor:
|
||||
self.draw_rules()
|
||||
|
||||
def rule_ok(self,obj):
|
||||
name = self.rule_name.get_text()
|
||||
name = unicode(self.rule_name.get_text())
|
||||
try:
|
||||
page = self.name2page[name]
|
||||
(n,c,v,t) = self.page[page]
|
||||
value_list = []
|
||||
for x in t:
|
||||
value_list.append(x.get_text())
|
||||
value_list.append(unicode(x.get_text()))
|
||||
store,iter = self.rlist.get_selected()
|
||||
new_rule = c(value_list)
|
||||
if self.active_rule:
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
# python modules
|
||||
@@ -344,9 +346,9 @@ class SimpleBookTitleDialog(Report.BareReportDialog):
|
||||
Report.BareReportDialog.parse_report_options_frame(self)
|
||||
|
||||
# get values from the widgets
|
||||
self.title_string = self.title_entry.get_text()
|
||||
self.subtitle_string = self.subtitle_entry.get_text()
|
||||
self.footer_string = self.footer_entry.get_text()
|
||||
self.title_string = unicode(self.title_entry.get_text())
|
||||
self.subtitle_string = unicode(self.subtitle_entry.get_text())
|
||||
self.footer_string = unicode(self.footer_entry.get_text())
|
||||
self.size_index = self.size_menu.get_history()
|
||||
|
||||
def on_cancel(self, obj):
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"""
|
||||
Timeline report
|
||||
"""
|
||||
@@ -446,7 +448,7 @@ class TimeLineDialog(Report.DrawReportDialog):
|
||||
|
||||
def make_report(self):
|
||||
|
||||
title = self.title_box.get_text()
|
||||
title = unicode(self.title_box.get_text())
|
||||
sort_func = self.sort_menu.get_active().get_data('sort')
|
||||
|
||||
try:
|
||||
@@ -600,7 +602,7 @@ class TimeLineBareDialog(Report.BareReportDialog):
|
||||
self.person = self.new_person
|
||||
self.filter_num = self.filter_combo.get_history()
|
||||
self.sort_func_num = self.sort_style.get_history()
|
||||
self.title_str = self.title_box.get_text()
|
||||
self.title_str = unicode(self.title_box.get_text())
|
||||
|
||||
self.options = ( self.person.getId(), self.filter_num,
|
||||
self.sort_func_num, self.title_str )
|
||||
|
||||
@@ -1170,14 +1170,14 @@ class WebReportDialog(Report.ReportDialog):
|
||||
user selected choices for later use."""
|
||||
self.restrict = self.restrict_living.get_active()
|
||||
self.private = self.no_private.get_active()
|
||||
self.img_dir_text = self.imgdir.get_text()
|
||||
self.img_dir_text = unicode(self.imgdir.get_text())
|
||||
|
||||
self.html_ext = string.strip(self.ext.entry.get_text())
|
||||
self.html_ext = string.strip(unicode(self.ext.entry.get_text()))
|
||||
if self.html_ext[0] == '.':
|
||||
self.html_ext = self.html_ext[1:]
|
||||
self.use_id = self.include_id.get_active()
|
||||
self.use_gendex = self.gendex.get_active()
|
||||
self.id_link = string.strip(self.linkpath.get_text())
|
||||
self.id_link = string.strip(unicode(self.linkpath.get_text()))
|
||||
self.srccomments = self.no_comments.get_active()
|
||||
if self.no_images.get_active() == 1:
|
||||
self.photos = 0
|
||||
|
||||
@@ -461,7 +461,7 @@ class GedcomWriter:
|
||||
self.images = self.topDialog.get_widget ("images").get_active ()
|
||||
if self.images:
|
||||
images_path = self.topDialog.get_widget ("images_path")
|
||||
self.images_path = images_path.get_text ()
|
||||
self.images_path = unicode(images_path.get_text ())
|
||||
|
||||
self.dest = self.target_ged.get_dest()
|
||||
self.adopt = self.target_ged.get_adopt()
|
||||
@@ -481,7 +481,7 @@ class GedcomWriter:
|
||||
self.cnvtxt = keep_utf8
|
||||
|
||||
self.nl = self.cnvtxt(self.target_ged.get_endl())
|
||||
name = self.topDialog.get_widget("filename").get_text()
|
||||
name = unicode(self.topDialog.get_widget("filename").get_text())
|
||||
|
||||
if cfilter == None:
|
||||
for p in self.db.getPersonKeys():
|
||||
|
||||
@@ -95,7 +95,7 @@ class PackageWriter:
|
||||
self.top.get_widget("packageExport").show()
|
||||
|
||||
def on_ok_clicked(self,obj):
|
||||
name = self.top.get_widget("filename").get_text()
|
||||
name = unicode(self.top.get_widget("filename").get_text())
|
||||
Utils.destroy_passed_object(obj)
|
||||
self.export(name)
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"""
|
||||
Provides a python evaluation window
|
||||
"""
|
||||
@@ -53,8 +55,8 @@ class EvalWindow:
|
||||
_("Python Evaluation Window"))
|
||||
|
||||
def apply_clicked(self,obj):
|
||||
text = self.ebuf.get_text(self.ebuf.get_start_iter(),
|
||||
self.ebuf.get_end_iter(),gtk.FALSE)
|
||||
text = unicode(self.ebuf.get_text(self.ebuf.get_start_iter(),
|
||||
self.ebuf.get_end_iter(),gtk.FALSE))
|
||||
|
||||
outtext = cStringIO.StringIO()
|
||||
errtext = cStringIO.StringIO()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000 Donald N. Allingham
|
||||
# Copyright (C) 2000-2003 Donald N. Allingham
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -18,6 +18,8 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"Utilities/Generate SoundEx codes"
|
||||
|
||||
import os
|
||||
@@ -80,7 +82,7 @@ class SoundGen:
|
||||
self.glade.get_widget("soundEx").show()
|
||||
|
||||
def on_apply_clicked(self,obj):
|
||||
self.value.set_text(soundex.soundex(obj.get_text()))
|
||||
self.value.set_text(soundex.soundex(unicode(obj.get_text())))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -95,5 +97,3 @@ register_tool(
|
||||
category=_("Utilities"),
|
||||
description=_("Generates SoundEx codes for names")
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user