Sort list of shares within a host

Bug #897041 reported by mvaldez on 2011-11-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyneighborhood
Wishlist
Unassigned

Bug Description

List of shares returned by smbclient may be unsorted. Make pyNeighborhood sort the share list for easier browsing.

mvaldez (mario-mariovaldez) wrote :

Would this change in mainwindow.py be enough (like 73):

from:
shares = cur.execute("""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()

to:
shares = cur.execute("""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()

Regards,
MV

Betz Stefan (encbladexp) on 2011-11-28
Changed in pyneighborhood:
importance: Undecided → Wishlist
milestone: none → 0.5.5
status: New → Confirmed
Betz Stefan (encbladexp) wrote :

Fixed by rev 580.

Changed in pyneighborhood:
assignee: nobody → Betz Stefan (encbladexp)
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions