* src/gramps.glade: Resolve widget naming conflict.
* src/SelectPerson: Resolve widget naming conflict. * src/Sort.py (by_date): Add function. svn: r3137
This commit is contained in:
parent
350f5d5077
commit
a0454e9ac8
@ -7,6 +7,11 @@
|
||||
* src/Makefile.am: Ship Sort.py instead of sort.py.
|
||||
* src/plugins/Makefile.am: Ship CountAncestors.py
|
||||
instead of count_anc.py.
|
||||
|
||||
* src/gramps.glade: Resolve widget naming conflict.
|
||||
* src/SelectPerson: Resolve widget naming conflict.
|
||||
|
||||
* src/Sort.py (by_date): Add function.
|
||||
|
||||
2004-05-05 Don Allingham <donaldallingham@users.sourceforge.net>
|
||||
* src/plugins/ReadGedcom.py: commit after media object change
|
||||
|
@ -120,3 +120,11 @@ class Sort:
|
||||
if val == 0:
|
||||
return self.by_last_name(first_id,second_id)
|
||||
return val
|
||||
|
||||
def by_date(self,a_id,b_id):
|
||||
"""Sort routine for comparing two events by their dates. """
|
||||
if not (a_id and b_id):
|
||||
return 0
|
||||
a = self.database.find_event_from_id(a_id)
|
||||
b = self.database.find_event_from_id(b_id)
|
||||
return Date.compare_dates(a.get_date_object(),b.get_date_object())
|
||||
|
Loading…
Reference in New Issue
Block a user