Author: duncan
Date: Tue Oct 23 01:21:54 2007
New Revision: 10035
Log:
Changed prints to debug messages
Changed subscribe to raise an exception
Modified:
branches/rel-1/freevo/src/rc.py
Modified: branches/rel-1/freevo/src/rc.py
==============================================================================
--- branches/rel-1/freevo/src/rc.py (original)
+++ branches/rel-1/freevo/src/rc.py Tue Oct 23 01:21:54 2007
@@ -142,7 +142,7 @@
global pylirc
import pylirc
except ImportError:
- print 'WARNING: PyLirc not found, lirc remote control disabled!'
+ _debug_('PyLirc not found, lirc remote control disabled!',
DWARNING)
raise
try:
if os.path.isfile(config.LIRCRC):
@@ -150,10 +150,10 @@
else:
raise IOError
except RuntimeError:
- print 'WARNING: Could not initialize PyLirc!'
+ _debug_('Could not initialize PyLirc!', DWARNING)
raise
except IOError:
- print 'WARNING: %s not found!' % config.LIRCRC
+ _debug_('%r not found!' % (config.LIRCRC), DWARNING)
raise
self.nextcode = pylirc.nextcode
@@ -630,8 +630,4 @@
"""
subscribe to 'post_event'
"""
- if not event_callback:
- return
-
- self.event_callback = event_callback
-
+ raise "subscribe doesn't work"
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog