undo revision 16673
svn: r16742
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user