Sort list of shares within a host

Bug #897041 reported by mvaldez
6
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.

Revision history for this message
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)
Changed in pyneighborhood:
importance: Undecided → Wishlist
milestone: none → 0.5.5
status: New → Confirmed
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.