Author: dmeyer
Date: Fri Apr 21 11:55:10 2006
New Revision: 8154
Modified:
trunk/tvserver/src/server.py
Log:
small stuff for bug hunting
Modified: trunk/tvserver/src/server.py
==============================================================================
--- trunk/tvserver/src/server.py (original)
+++ trunk/tvserver/src/server.py Fri Apr 21 11:55:10 2006
@@ -178,7 +178,9 @@
self.last_listing = listing
# send update to all clients
- self.send_event('home-theatre.record.list.update', *sending)
+ if sending:
+ log.info("send update for %s recordings", len(sending))
+ self.send_event('home-theatre.record.list.update', *sending)
# save fxd file
self.save()
@@ -368,6 +370,7 @@
result: [ ( id channel priority start stop status ) (...) ]
"""
ret = []
+ log.info('send list for %s recordings' % len(self.recordings))
for r in self.recordings:
ret.append(r.short_list())
return ret
@@ -383,7 +386,7 @@
for r in self.recordings:
if r.id == id:
return r.long_list()
- raise IndexError('Recording %s (%s) not found', id, type(id))
+ raise IndexError('Recording %s (%s) not found' % (id, type(id)))
@freevo.ipc.expose('home-theatre.recording.add')
@@ -618,7 +621,7 @@
if rec:
# something is recording, add busy time of first recording
busy = rec[0].stop + rec[0].stop_padding - ctime
- self.status.set('busy', max(1, int(busy / 60) + 1))
+ self.status.set('busy', max(2, int(busy / 60) + 1))
elif self.epg.updating:
# epg update in progress
self.status.set('busy', 1)
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog