2006-10-10  Alex Roitman  <shura@gramps-project.org>
	* NEWS: Update.
	* src/plugins/ExportVCalendar.py (get_option_box): Use custom filters.
	* src/plugins/ExportVCard.py (get_option_box): Use custom filters.
	* src/plugins/WriteFtree.py (get_option_box): Use custom filters.
	* src/plugins/WriteGeneWeb.py (get_option_box): Use custom filters.
	* src/Selectors/_BaseSelector.py: Import gettext.

	* src/ReportBase/_StyleEditor.py: Make style editor not modal
	* src/glade/gramps.glade: Make style editor not modal
	* src/GrampsLogger/_ErrorReportAssistant.py: Fix typo.
	* src/plugins/AncestorReport.py: Fix generation numbers.
	* src/GrampsLogger/_ErrorReportAssistant.py: Fix email client
	launch (#455)
	* src/plugins/Checkpoint.py: typo
	* src/docgen/RTFDoc.py: fix page breaks (#0000441)
	* src/plugins/Calendar.py: fix filter typo
	* src/plugins/WritePkg.py: don't set uid on Windows
In po:
2006-10-10  Alex Roitman  <shura@gramps-project.org>
	* POTFILES.in: Include all of Selectors package.

	* sk.po: Update translation.
	* lt.po: updated Lithuanian translation.


svn: r7391
This commit is contained in:
Alex Roitman
2006-10-11 04:59:26 +00:00
parent 13c3884aaa
commit bf82cb6fb7
9 changed files with 71 additions and 36 deletions

View File

@ -86,6 +86,8 @@ class CardWriterOptionBox:
all.set_name(_("Entire Database"))
all.add_rule(Rules.Person.Everyone([]))
the_filters = [all]
if self.person:
des = GenericFilter()
des.set_name(_("Descendants of %s") %
@ -105,10 +107,11 @@ class CardWriterOptionBox:
com.add_rule(Rules.Person.HasCommonAncestorWith(
[self.person.get_gramps_id()]))
self.filter_menu = build_filter_menu(
[all,des,ans,com])
else:
self.filter_menu = build_filter_menu([all])
the_filers += [all,des,ans,com]
from Filters import CustomFilters
the_filters.extend(CustomFilters.get_filters('Person'))
self.filter_menu = build_filter_menu(the_filters)
filter_obj.set_menu(self.filter_menu)
the_box = self.topDialog.get_widget('vbox1')