Author: dmeyer
Date: Sun Apr 16 21:49:26 2006
New Revision: 1400

Modified:
   trunk/beacon/src/__init__.py

Log:
autoconnect

Modified: trunk/beacon/src/__init__.py
==============================================================================
--- trunk/beacon/src/__init__.py        (original)
+++ trunk/beacon/src/__init__.py        Sun Apr 16 21:49:26 2006
@@ -64,7 +64,7 @@
     Get object for the given filename.
     """
     if not _client:
-        raise RuntimeError('beacon not connected')
+        connect()
     return _client.get(filename)
 
 
@@ -73,5 +73,5 @@
     Query the database.
     """
     if not _client:
-        raise RuntimeError('beacon not connected')
+        connect()
     return _client.query(**args)


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to