Author: duncan
Date: Mon Mar 10 17:54:44 2008
New Revision: 10499

Log:
Added back in the coroutine decorators
Added SystemExit where needed


Modified:
   branches/rel-1/freevo/src/tv/record_client.py

Modified: branches/rel-1/freevo/src/tv/record_client.py
==============================================================================
--- branches/rel-1/freevo/src/tv/record_client.py       (original)
+++ branches/rel-1/freevo/src/tv/record_client.py       Mon Mar 10 17:54:44 2008
@@ -113,7 +113,7 @@
             return None
 
 
-    [EMAIL PROTECTED]()
+    @kaa.coroutine()
     def pingCo(self):
         now = time.time()
         print self.timeit(now)+': pingCo started'
@@ -125,7 +125,7 @@
         print self.timeit(now)+': pingCo finished' # we never get here
 
 
-    [EMAIL PROTECTED]()
+    @kaa.coroutine()
     def findNextProgramCo(self, isrecording=False):
         """ """
         now = time.time()
@@ -138,7 +138,7 @@
         print self.timeit(now)+': findNextProgramCo finished'
 
 
-    [EMAIL PROTECTED]()
+    @kaa.coroutine()
     def updateFavoritesScheduleCo(self):
         """ """
         now = time.time()
@@ -151,7 +151,7 @@
         print self.timeit(now)+': updateFavoritesScheduleCo finished'
 
 
-    [EMAIL PROTECTED]()
+    @kaa.coroutine()
     def getNextProgramStart(self):
         """ """
         now = time.time()
@@ -561,19 +561,23 @@
 
     if function == "pingco":
         result = rc.pingCo().wait()
-        print 'pingCo=%r\n"%s"' % (result, result)
+        print 'pingCo=%r"' % (result,)
+        raise SystemExit
 
     if function == "findnextprogramco":
         result = rc.findNextProgramCo().wait()
         print 'findNextProgramCo=%r\n"%s"' % (result, result)
+        raise SystemExit
 
     if function == "updatefavoritesscheduleco":
         result = rc.updateFavoritesScheduleCo().wait()
         print 'updateFavoritesScheduleCo=%r' % (result,)
+        raise SystemExit
 
     if function == "getnextprogramstart":
         result = rc.getNextProgramStart().wait()
         print 'getNextProgramStart=%r' % (result,)
+        raise SystemExit
 
     
#--------------------------------------------------------------------------------
     # kaa.rpc callback tests
@@ -582,6 +586,7 @@
     if function == "pingnow":
         result = rc.pingNow()
         print 'result: %r\n"%s"' % (result, result)
+        raise SystemExit
 
     elif function == "ping":
         result = rc.ping(handler)
@@ -592,6 +597,7 @@
         print 'recording:%r\n"%s"' % (result, result)
         result = rc.findNextProgramNow(False)
         print 'next     :%r\n"%s"' % (result, result)
+        raise SystemExit
 
     elif function == "findnextprogram":
         rc.findNextProgram(handler)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to