Sort strings, not lists in Narrative Web combo boxes.

svn: r8477
This commit is contained in:
Brian Matherly 2007-05-15 12:01:25 +00:00
parent 26ef497eaa
commit ada7cb037d
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2007-05-15 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: Sort strings, not lists.
2007-05-15 Brian Matherly <brian@gramps-project.org> 2007-05-15 Brian Matherly <brian@gramps-project.org>
* src/DataViews/_PedigreeView.py: Catch possible crash * src/DataViews/_PedigreeView.py: Catch possible crash

View File

@ -2620,8 +2620,8 @@ class WebReportOptions(ReportOptions):
data = cursor.next() data = cursor.next()
cursor.close() cursor.close()
media_list.sort(strcoll_case_sensitive) media_list.sort(lambda x, y: strcoll_case_sensitive(x[0], y[0]))
html_list.sort(strcoll_case_sensitive) html_list.sort(lambda x, y: strcoll_case_sensitive(x[0], y[0]))
self.home_note = mk_combobox(media_list,self.options_dict['NWEBhomenote']) self.home_note = mk_combobox(media_list,self.options_dict['NWEBhomenote'])
self.intro_note = mk_combobox(media_list,self.options_dict['NWEBintronote']) self.intro_note = mk_combobox(media_list,self.options_dict['NWEBintronote'])