* 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:
@ -212,13 +212,13 @@ class EventEditor:
|
||||
|
||||
def on_menu_changed(self,obj):
|
||||
cobj = obj.get_data("d")
|
||||
self.date.set(self.date_field.get_text())
|
||||
self.date.set(unicode(self.date_field.get_text()))
|
||||
self.date.set_calendar(cobj)
|
||||
self.date_field.set_text(self.date.getDate())
|
||||
self.date_check.set_calendar(cobj())
|
||||
|
||||
def get_place(self,field,makenew=0):
|
||||
text = strip(field.get_text())
|
||||
text = unicode(strip(field.get_text()))
|
||||
if text:
|
||||
if self.pmap.has_key(text):
|
||||
return self.parent.db.getPlaceMap()[self.pmap[text]]
|
||||
@ -237,15 +237,15 @@ class EventEditor:
|
||||
|
||||
def on_event_edit_ok_clicked(self):
|
||||
|
||||
ename = self.name_field.get_text()
|
||||
self.date.set(self.date_field.get_text())
|
||||
ecause = self.cause_field.get_text()
|
||||
ename = unicode(self.name_field.get_text())
|
||||
self.date.set(unicode(self.date_field.get_text()))
|
||||
ecause = unicode(self.cause_field.get_text())
|
||||
eplace_obj = self.get_place(self.place_field,1)
|
||||
buf = self.note_field.get_buffer()
|
||||
|
||||
enote = buf.get_text(buf.get_start_iter(),buf.get_end_iter(),gtk.FALSE)
|
||||
eformat = self.preform.get_active()
|
||||
edesc = self.descr_field.get_text()
|
||||
edesc = unicode(self.descr_field.get_text())
|
||||
epriv = self.priv.get_active()
|
||||
|
||||
if not ename in self.elist:
|
||||
|
Reference in New Issue
Block a user