* src/Editors/_EditFamily.py: fix Select Person calls

* src/docgen/Makefile.am: add ODSDoc.py
	* po/POTFILES.in: add ODSDoc.py


svn: r6499
This commit is contained in:
Don Allingham 2006-04-30 04:17:54 +00:00
parent 715fa45012
commit 4063ae7172
4 changed files with 13 additions and 4 deletions

View File

@ -1,4 +1,7 @@
2006-04-29 Don Allingham <don@gramps-project.org> 2006-04-29 Don Allingham <don@gramps-project.org>
* src/Editors/_EditFamily.py: fix Select Person calls
* src/docgen/Makefile.am: add ODSDoc.py
* po/POTFILES.in: add ODSDoc.py
* src/NEWS: Updated for 2.1.0 release * src/NEWS: Updated for 2.1.0 release
2006-04-29 Brian Matherly <brian@gramps-project.org> 2006-04-29 Brian Matherly <brian@gramps-project.org>

View File

@ -89,6 +89,7 @@ src/docgen/HtmlDoc.py
src/docgen/KwordDoc.py src/docgen/KwordDoc.py
src/docgen/LaTeXDoc.py src/docgen/LaTeXDoc.py
src/docgen/LPRDoc.py src/docgen/LPRDoc.py
src/docgen/ODSDoc.py
src/docgen/ODFDoc.py src/docgen/ODFDoc.py
src/docgen/OpenOfficeDoc.py src/docgen/OpenOfficeDoc.py
src/docgen/OpenSpreadSheet.py src/docgen/OpenSpreadSheet.py

View File

@ -222,7 +222,8 @@ class ChildEmbedList(EmbeddedList):
self.family.get_mother_handle()] + \ self.family.get_mother_handle()] + \
[x.ref for x in self.family.get_child_ref_list() ] [x.ref for x in self.family.get_child_ref_list() ]
sel = SelectPerson(self.dbstate.db, "Select Child", skip=skip_list) sel = SelectPerson(self.dbstate, self.uistate, _("Select Child"),
skip=skip_list)
person = sel.run() person = sel.run()
if person: if person:
@ -233,7 +234,8 @@ class ChildEmbedList(EmbeddedList):
def run(self,skip): def run(self,skip):
skip_list = [ x for x in skip if x] skip_list = [ x for x in skip if x]
SelectPerson(self.dbstate.db, "Select Child", skip=skip_list) SelectPerson(self.dbstate, self.uistate, _("Select Child"),
skip=skip_list)
def del_button_clicked(self,obj): def del_button_clicked(self,obj):
handle = self.get_selected() handle = self.get_selected()
@ -534,7 +536,8 @@ class EditFamily(EditPrimary):
self.update_mother(None) self.update_mother(None)
else: else:
data_filter = FastFemaleFilter(self.dbstate.db) data_filter = FastFemaleFilter(self.dbstate.db)
sel = SelectPerson(self.dbstate.db, "Select Mother", sel = SelectPerson(self.dbstate, self.uistate,
_("Select Mother"),
filter=data_filter, filter=data_filter,
skip=[x.ref for x in self.obj.get_child_ref_list()]) skip=[x.ref for x in self.obj.get_child_ref_list()])
person = sel.run() person = sel.run()
@ -577,7 +580,8 @@ class EditFamily(EditPrimary):
self.update_father(None) self.update_father(None)
else: else:
data_filter = FastMaleFilter(self.dbstate.db) data_filter = FastMaleFilter(self.dbstate.db)
sel = SelectPerson(self.dbstate.db, "Select Father", sel = SelectPerson(self.dbstate, self.uistate,
_("Select Father"),
filter=data_filter, filter=data_filter,
skip=[x.ref for x in self.obj.get_child_ref_list()]) skip=[x.ref for x in self.obj.get_child_ref_list()])
person = sel.run() person = sel.run()

View File

@ -11,6 +11,7 @@ docgen_PYTHON = \
KwordDoc.py\ KwordDoc.py\
LaTeXDoc.py\ LaTeXDoc.py\
ODFDoc.py\ ODFDoc.py\
ODSDoc.py\
OpenOfficeDoc.py\ OpenOfficeDoc.py\
OpenSpreadSheet.py\ OpenSpreadSheet.py\
SpreadSheetDoc.py\ SpreadSheetDoc.py\