Author: duncan
Date: Thu Jan 25 17:56:15 2007
New Revision: 9052
Modified:
branches/rel-1/freevo/src/www/htdocs/favorites.rpy
Log:
[ 1643937 ] www displays favorites incorrectly
Patch from Justin Wetherell applied
Modified: branches/rel-1/freevo/src/www/htdocs/favorites.rpy
==============================================================================
--- branches/rel-1/freevo/src/www/htdocs/favorites.rpy (original)
+++ branches/rel-1/freevo/src/www/htdocs/favorites.rpy Thu Jan 25 17:56:15 2007
@@ -115,9 +115,15 @@
fv.tableCell(_('Priority'), 'class="guidehead" colspan="1"')
fv.tableRowClose()
- f = lambda a, b: cmp(a.priority, b.priority)
+ def sortByPriority(a,b):
+ if (a.priority < b.priority):
+ return -1
+ elif (a.priority > b.priority):
+ return 1
+ else:
+ return 0
favs = favorites.values()
- favs.sort(f)
+ favs.sort(sortByPriority)
for fav in favs:
status = 'favorite'
if fav.channel == 'ANY':
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog