Author: dmeyer
Date: Wed Jan 25 17:44:32 2006
New Revision: 7875

Modified:
   trunk/tvdev/src/control.py

Log:
use new expose decorator

Modified: trunk/tvdev/src/control.py
==============================================================================
--- trunk/tvdev/src/control.py  (original)
+++ trunk/tvdev/src/control.py  Wed Jan 25 17:44:32 2006
@@ -95,13 +95,12 @@
         self.cards = system.devices
         self.recordings = {}
         self.server = None
+
         mbus = freevo.ipc.Instance('tvdev')
-        mbus.connect_rpc(self.device_list, 'home-theatre.device.list', 
add_source=True)
-        mbus.connect_rpc(self.device_describe, 'home-theatre.device.describe')
-        mbus.connect_rpc(self.record, 'home-theatre.vdr.record')
-        mbus.connect_rpc(self.remove, 'home-theatre.vdr.remove')
+        mbus.connect(self)
 
 
+    @freevo.ipc.expose('home-theatre.device.list', add_source=True)
     def device_list(self, source):
         """
         RPC handler for home-theatre.vdr.list
@@ -111,6 +110,7 @@
         return [ x.name for x in self.cards ]
 
 
+    @freevo.ipc.expose('home-theatre.device.describe')
     def device_describe(self, id):
         """
         RPC handler for home-theatre.vdr.describe
@@ -122,6 +122,7 @@
         raise IndexError('%s invalid' % id)
 
 
+    @freevo.ipc.expose('home-theatre.vdr.record')
     def record(self, device, channel, start, stop, filename, options):
         """
         RPC handler for home-theatre.vdr.record
@@ -149,6 +150,7 @@
         return [ rec.id ]
 
 
+    @freevo.ipc.expose('home-theatre.vdr.remove')
     def remove(self, id):
         """
         RPC handler for home-theatre.vdr.remove


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to