undo revision 16673

svn: r16742
This commit is contained in:
Michiel Nauta
2011-03-02 11:31:57 +00:00
parent 97e0b95e2d
commit a7906886af
9 changed files with 18 additions and 13 deletions

View File

@@ -131,8 +131,8 @@ class QMLPersonListModel(QtCore.QAbstractListModel):
# use cursor as a context manager
with self.gen_cursor() as cursor:
#loop over database and store the sort field, and the handle
return sorted((conv_unicode_tosrtkey_ongtk(self.sort_func(data)),
key) for key, data in cursor)
return sorted((map(conv_unicode_tosrtkey_ongtk,
self.sort_func(data)), key) for key, data in cursor)
def sort_name(self, data):
n = Name()