* src/RelLib.py: Person and Family now inherit from SourceNote
* src/EditPerson.py: Added source tab to apply generic sources to a person * src/Marriage.py: Added source tab to apply generic sources to a person, add "complete" flag * src/WriteXML.py: Store source information for Family and Person, store complete flag for Family * src/GrampsParser.py: Parse source information for Family and Person, read complete flag for Famiy svn: r2289
This commit is contained in:
@@ -53,6 +53,7 @@ import sort
|
||||
import AutoComp
|
||||
import ListModel
|
||||
import RelLib
|
||||
import Sources
|
||||
from DateEdit import DateEdit
|
||||
from QuestionDialog import QuestionDialog, WarningDialog, ErrorDialog, SaveDialog
|
||||
|
||||
@@ -102,7 +103,8 @@ class EditPerson:
|
||||
self.window.set_title("%s - GRAMPS" % _('Edit Person'))
|
||||
|
||||
self.icon_list = self.top.get_widget("iconlist")
|
||||
self.gallery = ImageSelect.Gallery(person, self.path, self.icon_list,self.db,self,self.window)
|
||||
self.gallery = ImageSelect.Gallery(person, self.path, self.icon_list,
|
||||
self.db,self,self.window)
|
||||
|
||||
self.name_delete_btn = self.top.get_widget('aka_delete')
|
||||
self.name_edit_btn = self.top.get_widget('aka_edit')
|
||||
@@ -176,6 +178,7 @@ class EditPerson:
|
||||
self.name_note = self.get_widget("name_note")
|
||||
self.name_source = self.get_widget("name_source")
|
||||
self.gid = self.get_widget("gid")
|
||||
self.slist = self.get_widget("slist")
|
||||
|
||||
self.death = RelLib.Event(person.getDeath())
|
||||
self.birth = RelLib.Event(person.getBirth())
|
||||
@@ -187,6 +190,11 @@ class EditPerson:
|
||||
self.ulist = person.getUrlList()[:]
|
||||
self.plist = person.getAddressList()[:]
|
||||
|
||||
if person:
|
||||
self.srcreflist = person.getSourceRefList()
|
||||
else:
|
||||
self.srcreflist = []
|
||||
|
||||
# event display
|
||||
etitles = [(_('Event'),-1,150),(_('Description'),-1,150),
|
||||
(_('Date'),-1,100),(_('Place'),-1,100)]
|
||||
@@ -329,6 +337,12 @@ class EditPerson:
|
||||
|
||||
self.update_birth_death()
|
||||
|
||||
self.sourcetab = Sources.SourceTab(self.srcreflist,self,
|
||||
self.top,self.window,self.slist,
|
||||
self.top.get_widget('add_src'),
|
||||
self.top.get_widget('edit_src'),
|
||||
self.top.get_widget('del_src'))
|
||||
|
||||
self.redraw_event_list()
|
||||
self.redraw_attr_list()
|
||||
self.redraw_addr_list()
|
||||
@@ -1429,6 +1443,10 @@ class EditPerson:
|
||||
self.person.setLdsSeal(self.lds_sealing)
|
||||
Utils.modified()
|
||||
|
||||
if self.lists_changed:
|
||||
self.person.setSourceRefList(self.srcreflist)
|
||||
Utils.modified()
|
||||
|
||||
self.update_lists()
|
||||
if self.callback:
|
||||
self.callback(self,self.add_places)
|
||||
|
Reference in New Issue
Block a user