* src/plugins/NavWebPage.py: More enhancements

* src/Sort.py: sort places by title


svn: r4026
This commit is contained in:
Don Allingham
2005-02-13 03:54:47 +00:00
parent e827b66bca
commit 030375a94d
3 changed files with 152 additions and 583 deletions

View File

@@ -105,3 +105,11 @@ class Sort:
a = self.database.get_event_from_handle(a_id)
b = self.database.get_event_from_handle(b_id)
return cmp(a.get_date_object(),b.get_date_object())
def by_place_title(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.get_place_from_handle(a_id)
b = self.database.get_place_from_handle(b_id)
return cmp(a.title,b.title)