* src/ChooseParents.py: use new cursor for interation
* src/DbPrompter.py: reformat * src/GenericFilter.py: add disconnected rule * src/GrampsBSDDB.py: provide cursor access for iteration * src/GrampsDbBase.py: provide cursor access for iteration * src/GrampsInMemDB.py: provide cursor access for iteration * src/Makefile.am: add gramps.desktop to install list * src/PeopleModel.py: use new cursor for faster iteration * src/PeopleView.py: reimplement filtering * src/ReadGedcom.py: removed used source counting * src/gedcomimport.glade: remove source field * src/gramps.glade: fixed spacing in message * src/gramps_main.py: add disconnected filter svn: r3779
This commit is contained in:
@ -139,6 +139,30 @@ class Everyone(Rule):
|
||||
def apply(self,db,p_id):
|
||||
return 1
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Disconnected
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
class Disconnected(Rule):
|
||||
"""Matches disconnected individuals"""
|
||||
|
||||
labels = []
|
||||
|
||||
def name(self):
|
||||
return 'Disconnected individuals'
|
||||
|
||||
def category(self):
|
||||
return _('General filters')
|
||||
|
||||
def description(self):
|
||||
return _('Matches individuals that have no relationships')
|
||||
|
||||
def apply(self,db,p_id):
|
||||
person = db.get_person_from_handle(p_id)
|
||||
return (not person.get_main_parents_family_handle() and
|
||||
not len(person.get_family_handle_list()))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# RelationshipPathBetween
|
||||
|
Reference in New Issue
Block a user