Update of /cvsroot/freevo/freevo/src/skins/main In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1892
Modified Files: tvlisting_area.py Log Message: remove old stuff Index: tvlisting_area.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/skins/main/tvlisting_area.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** tvlisting_area.py 21 Feb 2004 20:03:45 -0000 1.19 --- tvlisting_area.py 14 Mar 2004 11:17:38 -0000 1.20 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.20 2004/03/14 11:17:38 dischi + # remove old stuff + # # Revision 1.19 2004/02/21 20:03:45 dischi # unicode fix (again) *************** *** 199,203 **** content = self.calc_geometry(layout.content, copy_object=True) - recordingshows = self.check_schedule() to_listing = menu.table --- 202,205 ---- *************** *** 374,390 **** font = val.font - # Not at all elegant. - # TODO: - # * This is going to be SLOW for large schedules - # * We should have a skin setting for recording - # background color - # * I dunno what else. - # I will work on this soon, but think of this as a - # proof of concept. - if recordingshows: - for recprogs in recordingshows: - if (prg.channel_id, prg.start, prg.stop) == recprogs: - val = selected_val - try: if prg.title == _('This channel has no data loaded'): --- 376,379 ---- *************** *** 446,477 **** self.drawimage(area.images['downarrow'].filename, v) - - def check_schedule (self): - - SCHEDULE = config.REC_SCHEDULE_FILE - if not os.path.isfile(SCHEDULE): - return None - fd = open(SCHEDULE, 'r') - schedule = fd.readlines() - fd.close() - recordingshows = [] - - for s in schedule[1:]: - if s[0] == '#': - continue - - vals = s.strip().split(',') - - try: - start_time = time.mktime(time.strptime(vals[0], '%Y-%m-%d %H:%M:%S')) - except ValueError: - continue - stop_time = start_time+int(vals[1]) - if (time.localtime()[8]==1): # IF daylight savings time in effect - start_time = start_time-3600 - stop_time = stop_time-3600 - - channel_id = vals[3] - recordingshows.append((channel_id,start_time,stop_time)) - - return recordingshows --- 435,436 ---- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog