Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1:/tmp/cvs-serv11985

Modified Files:
        misc.py 
Log Message:
Fixes in comingup:
o do not crash when the recordserver is down
o show a message when no schedules are set and not nothing
o make arg optional (why is it there anyway?)


Index: misc.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/misc.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** misc.py     11 Jan 2004 05:59:41 -0000      1.16
--- misc.py     11 Jan 2004 10:56:52 -0000      1.17
***************
*** 11,14 ****
--- 11,20 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.17  2004/01/11 10:56:52  dischi
+ # Fixes in comingup:
+ # o do not crash when the recordserver is down
+ # o show a message when no schedules are set and not nothing
+ # o make arg optional (why is it there anyway?)
+ #
  # Revision 1.16  2004/01/11 05:59:41  outlyer
  # How overcomplicated could I have made something so simple? This is a little
***************
*** 377,381 ****
  #
  
! def comingup(items):
      import tv.record_client as ri
      import time
--- 383,387 ----
  #
  
! def comingup(items=None):
      import tv.record_client as ri
      import time
***************
*** 393,396 ****
--- 399,407 ----
  
      (status, recordings) = ri.getScheduledRecordings()
+ 
+     if not status:
+         result = _('The recordserver is down')
+         return result
+ 
      progs = recordings.getProgramList()
  
***************
*** 438,441 ****
--- 449,455 ----
                  str(time.strftime('%I:%M%p',time.localtime(m.start))) + '\n'
  
+     if not result:
+         result = _('No recordings are scheduled')
+         
      cache = open(cachefile,'w')
      cache.write(result)




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to