Author: dmeyer
Date: Mon Apr 16 19:12:41 2007
New Revision: 2630
Modified:
trunk/epg/src/__init__.py
Log:
remove autoconnect code again
Modified: trunk/epg/src/__init__.py
==============================================================================
--- trunk/epg/src/__init__.py (original)
+++ trunk/epg/src/__init__.py Mon Apr 16 19:12:41 2007
@@ -52,8 +52,6 @@
# connected client object
guide = Client()
-autoconnect = True
-
def connect(address = 'epg', auth_secret = ''):
"""
Connect to the epg server with the given address and auth secret.
@@ -69,8 +67,6 @@
Return a list of all channels.
"""
if guide.status == DISCONNECTED:
- if not autoconnect:
- return []
connect()
return guide.get_channels(sort)
@@ -80,8 +76,6 @@
Return the channel with the given name.
"""
if guide.status == DISCONNECTED:
- if not autoconnect:
- return None
connect()
return guide.get_channel(name)
@@ -94,8 +88,6 @@
arrived from the server.
"""
if guide.status == DISCONNECTED:
- if not autoconnect:
- return []
connect()
while block and guide.status == CONNECTING:
kaa.notifier.step()
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog