Posted: Sun Jan 10, 2010 1:45 am Post subject: Request for sorted shares on web page
I'd like to request the following change to httpserver.py to sort the list of shares on the web page when connecting to http://localhost:9032. I don't know if the non-sorting is limited to Windows systems, but it looks messy. See non-sorted & sorted picture attachments.
diff of original httpserver.py.org & modified httpserver.py
< for section in shares:
> for section in sorted(shares.iterkeys()):
Joined: 04 Jan 2008 Posts: 2623 Location: Maryland
Posted: Sun Jan 10, 2010 3:24 am Post subject:
OK, fixed this, in a different way. (The shares were already returned in sorted form from config.getShares(), then the pointless dict() discarded the order. Really, this was an oversight from the time of thesechanges.) Thanks. _________________ My pyTivo fork . My page
The number of shares have expanded over the last couple of years of using pyTivo. I have lots of shares because I use the Shares config option to limit which shares are accessible on various Tivos. I haven't encountered problems on the Tivo with a number of shares limit yet. I could change things, but everyone in the household would need to be retrained and that is something I'd like to delay as long as possible.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum