Author: dmeyer
Date: Wed Feb 22 19:42:05 2006
New Revision: 7927
Modified:
trunk/WIP/webserver/src/tv/__init__.py
Log:
sort programs
Modified: trunk/WIP/webserver/src/tv/__init__.py
==============================================================================
--- trunk/WIP/webserver/src/tv/__init__.py (original)
+++ trunk/WIP/webserver/src/tv/__init__.py Wed Feb 22 19:42:05 2006
@@ -21,7 +21,9 @@
# notice: pass the _imported_module_ to this function here
@kaa.cherrypy.expose(template=recordings)
def recordings(self):
- return dict(recordings=tvserver.recordings.list())
+ x = tvserver.recordings.list()[:]
+ x.sort(lambda a,b: cmp(a.start, b.start))
+ return dict(recordings=x, header=header)
# A kid template as function without extra attributes. The template
# loads tvserver by itself.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog