* src/PlaceView.py: Make sure to add new place after edit
* src/AddMedia.py: unicode conversion from gtk.Entry * src/AddSpouse.py: unicode conversion from gtk.Entry * src/AddrEdit.py: unicode conversion from gtk.Entry * src/AttrEdit.py: unicode conversion from gtk.Entry * src/AutoComp.py: unicode conversion from gtk.Entry * src/ChooseParents.py: unicode conversion from gtk.Entry * src/DateEdit.py: unicode conversion from gtk.Entry * src/EditPerson.py: unicode conversion from gtk.Entry * src/EditPlace.py: unicode conversion from gtk.Entry * src/EditSource.py: unicode conversion from gtk.Entry * src/EventEdit.py: unicode conversion from gtk.Entry * src/Find.py: unicode conversion from gtk.Entry * src/GrampsCfg.py: unicode conversion from gtk.Entry * src/ImageSelect.py: unicode conversion from gtk.Entry * src/LocEdit.py: unicode conversion from gtk.Entry * src/Marriage.py: unicode conversion from gtk.Entry * src/MergeData.py: unicode conversion from gtk.Entry * src/NameEdit.py: unicode conversion from gtk.Entry * src/PeopleView.py: unicode conversion from gtk.Entry * src/Report.py: unicode conversion from gtk.Entry * src/SelectChild.py: unicode conversion from gtk.Entry * src/Sources.py: unicode conversion from gtk.Entry * src/StartupDialog.py: unicode conversion from gtk.Entry * src/StyleEditor.py: unicode conversion from gtk.Entry * src/UrlEdit.py: unicode conversion from gtk.Entry * src/Utils.py: unicode conversion from gtk.Entry * src/VersionControl.py: unicode conversion from gtk.Entry * src/Witness.py: unicode conversion from gtk.Entry svn: r2534
This commit is contained in:
@@ -304,7 +304,7 @@ class ChooseParents:
|
||||
def parent_relation_changed(self,obj):
|
||||
"""Called everytime the parent relationship information is changegd"""
|
||||
self.old_type = self.type
|
||||
self.type = const.save_frel(obj.get_text())
|
||||
self.type = const.save_frel(unicode(obj.get_text()))
|
||||
if self.old_type == "Partners" or self.type == "Partners":
|
||||
self.redrawf()
|
||||
self.redrawm()
|
||||
@@ -384,12 +384,12 @@ class ChooseParents:
|
||||
of the main perosn.
|
||||
"""
|
||||
try:
|
||||
mother_rel = const.childRelations[self.mother_rel.get_text()]
|
||||
mother_rel = const.childRelations[unicode(self.mother_rel.get_text())]
|
||||
except KeyError:
|
||||
mother_rel = const.childRelations["Birth"]
|
||||
|
||||
try:
|
||||
father_rel = const.childRelations[self.father_rel.get_text()]
|
||||
father_rel = const.childRelations[unicode(self.father_rel.get_text())]
|
||||
except KeyError:
|
||||
father_rel = const.childRelations["Birth"]
|
||||
|
||||
@@ -437,7 +437,7 @@ class ChooseParents:
|
||||
self.db.addPersonNoMap(person,id)
|
||||
self.db.buildPersonDisplay(id)
|
||||
|
||||
self.type = const.save_frel(self.prel.get_text())
|
||||
self.type = const.save_frel(unicode(self.prel.get_text()))
|
||||
dinfo = self.db.getPersonDisplay(id)
|
||||
rdata = [dinfo[0],dinfo[1],dinfo[3],dinfo[5],dinfo[6]]
|
||||
|
||||
@@ -580,8 +580,8 @@ class ModifyParents:
|
||||
Called with the OK button nis pressed. Saves the selected people as parents
|
||||
of the main perosn.
|
||||
"""
|
||||
mother_rel = const.childRelations[self.mother_rel.get_text()]
|
||||
father_rel = const.childRelations[self.father_rel.get_text()]
|
||||
mother_rel = const.childRelations[unicode(self.mother_rel.get_text())]
|
||||
father_rel = const.childRelations[unicode(self.father_rel.get_text())]
|
||||
mod = 0
|
||||
|
||||
if mother_rel != self.orig_mrel or father_rel != self.orig_frel:
|
||||
|
||||
Reference in New Issue
Block a user