* src/GenericFilter.py: Proper test for place in event-based

filters; (Rule.set_list): Add assertion to have the correct number
of arguments; (various): stop testing for number of arguments.
* src/AddSpouse.py (LikelyFilter): Add labels to the filter.
* src/ChooseParents.py (LikelyFilter): Add labels to the filter.
* src/SelectiChild.py (LikelyFilter): Add labesl to the filter.
* src/gramps_main.py (init_filters): Instantiate filters with
corrent number of arguments.


svn: r4925
This commit is contained in:
Alex Roitman
2005-07-13 19:04:29 +00:00
parent 3e68afe934
commit cc38e20f1d
6 changed files with 57 additions and 39 deletions

View File

@@ -808,7 +808,8 @@ class ModifyParents:
#-------------------------------------------------------------------------
class LikelyFilter(GenericFilter.Rule):
category = _('General filters')
labels = [ 'Person handle' ]
category = _('General filters')
def prepare(self,db):
person = db.get_person_from_handle(self.list[0])