0004977: feature request: sorted "Available Items" in Book Report (Patch from Paul Franklin)
svn: r17826
This commit is contained in:
parent
37431956f1
commit
a7cf957319
@ -4,6 +4,7 @@
|
|||||||
# Copyright (C) 2003-2007 Donald N. Allingham
|
# Copyright (C) 2003-2007 Donald N. Allingham
|
||||||
# Copyright (C) 2007-2008 Brian G. Matherly
|
# Copyright (C) 2007-2008 Brian G. Matherly
|
||||||
# Copyright (C) 2010 Jakim Friant
|
# Copyright (C) 2010 Jakim Friant
|
||||||
|
# Copyright (C) 2011 Paul Franklin
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -802,13 +803,14 @@ class BookReportSelector(ManagedWindow.ManagedWindow):
|
|||||||
if not regbi:
|
if not regbi:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
available_reports = []
|
||||||
for pdata in regbi:
|
for pdata in regbi:
|
||||||
if not pdata.supported:
|
if not pdata.supported:
|
||||||
category = _UNSUPPORTED
|
category = _UNSUPPORTED
|
||||||
else:
|
else:
|
||||||
category = book_categories[pdata.category]
|
category = book_categories[pdata.category]
|
||||||
|
available_reports.append([ pdata.name, category, pdata.id ])
|
||||||
data = [pdata.name, category, pdata.id ]
|
for data in sorted(available_reports):
|
||||||
new_iter = self.avail_model.add(data)
|
new_iter = self.avail_model.add(data)
|
||||||
|
|
||||||
self.avail_model.connect_model()
|
self.avail_model.connect_model()
|
||||||
|
Loading…
Reference in New Issue
Block a user