* 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:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user