Update of /cvsroot/freevo/freevo/skins/main1
In directory sc8-pr-cvs1:/tmp/cvs-serv6734/skins/main1
Modified Files:
tvlisting_area.py
Log Message:
Made the timeformat in Freevo's TV Guide configurable, just like the date
format. I don't like Military time :)
Index: tvlisting_area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/main1/tvlisting_area.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tvlisting_area.py 12 Jun 2003 00:11:39 -0000 1.3
--- tvlisting_area.py 18 Jun 2003 18:29:13 -0000 1.4
***************
*** 10,13 ****
--- 10,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.4 2003/06/18 18:29:13 outlyer
+ # Made the timeformat in Freevo's TV Guide configurable, just like the date
+ # format. I don't like Military time :)
+ #
# Revision 1.3 2003/06/12 00:11:39 gsbarbieri
# Fixed the TV Guide.
***************
*** 190,193 ****
--- 194,200 ----
# Print the Date of the current list page
dateformat = config.TV_DATEFORMAT
+ timeformat = config.TV_TIMEFORMAT
+ if not timeformat:
+ timeformat = '%H:%M'
if not dateformat:
dateformat = '%e-%b'
***************
*** 228,232 ****
math.floor( col_size + x0 ) - math.floor( x0 ) + 1,
head_h + 1, r )
! self.write_text( time.strftime( "%H:%M", time.localtime( to_listing[ 0
][ i + 1 ] ) ),
head_font, content,
x=( x0 + ig.x ), y=( ty0 + ig.y ),
--- 235,239 ----
math.floor( col_size + x0 ) - math.floor( x0 ) + 1,
head_h + 1, r )
! self.write_text( time.strftime( timeformat, time.localtime( to_listing[
0 ][ i + 1 ] ) ),
head_font, content,
x=( x0 + ig.x ), y=( ty0 + ig.y ),
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog