Sort list of shares within a host
Bug #897041 reported by
mvaldez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyneighborhood |
Fix Committed
|
Wishlist
|
Unassigned |
Bug Description
List of shares returned by smbclient may be unsorted. Make pyNeighborhood sort the share list for easier browsing.
Changed in pyneighborhood: | |
importance: | Undecided → Wishlist |
milestone: | none → 0.5.5 |
status: | New → Confirmed |
To post a comment you must log in.
Would this change in mainwindow.py be enough (like 73):
from: """SELECT shares.id, shares.name, shares.comment, hosts.treeview FROM shares INNER JOIN hosts ON shares.host = hosts.id WHERE shares.treeview ISNULL AND shares.validated = 0 AND hosts.treeview NOTNULL" "").fetchall( )
shares = cur.execute(
to: """SELECT shares.id, shares.name, shares.comment, hosts.treeview FROM shares INNER JOIN hosts ON shares.host = hosts.id WHERE shares.treeview ISNULL AND shares.validated = 0 AND hosts.treeview NOTNULL ORDER BY UPPER(shares. name)"" ").fetchall( )
shares = cur.execute(
Regards,
MV