Author: rshortt
Date: Sun Mar 12 16:53:16 2006
New Revision: 8078
Modified:
trunk/WIP/RobShortt/webserver-epg2/src/pages/guide.py
Log:
Add a quick hack / fix for tuner_id being a list.
Modified: trunk/WIP/RobShortt/webserver-epg2/src/pages/guide.py
==============================================================================
--- trunk/WIP/RobShortt/webserver-epg2/src/pages/guide.py (original)
+++ trunk/WIP/RobShortt/webserver-epg2/src/pages/guide.py Sun Mar 12
16:53:16 2006
@@ -173,7 +173,7 @@
# for now sort by name first, then tuner_id because tuner_id
# may be None.
channels.sort(lambda a, b: cmp(a.short_name, b.short_name))
- channels.sort(lambda a, b: cmp(int(a.tuner_id), int(b.tuner_id)))
+ channels.sort(lambda a, b: cmp(int(a.tuner_id[0]), int(b.tuner_id[0])))
for chan in channels:
#put guidehead every X rows
@@ -204,7 +204,7 @@
now = mfrguidestart
# chan.displayname = string.replace(chan.displayname, "&", "SUB")
rowdata.append(u'<tr class="chanrow">')
- rowdata.append(u'<td class="channel">%s %s</td>' % (chan.tuner_id,
chan.short_name))
+ rowdata.append(u'<td class="channel">%s %s</td>' %
(chan.tuner_id[0], chan.short_name))
c_left = n_cols * cpb
progs = guide().search(channel =
guide().get_channel(chan.short_name),
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog