Author: dmeyer
Date: Sat Sep 15 14:00:13 2007
New Revision: 2810
Log:
db may not be set on __init__
Modified:
trunk/beacon/src/query.py
Modified: trunk/beacon/src/query.py
==============================================================================
--- trunk/beacon/src/query.py (original)
+++ trunk/beacon/src/query.py Sat Sep 15 14:00:13 2007
@@ -80,7 +80,6 @@
self._client = client
# some shortcuts from the client
self._rpc = self._client.rpc
- self._db = self._client._db
# start inititial query
self._beacon_start_query(query)
@@ -203,7 +202,7 @@
# some time until it tries again. That time is too long, it
# can take up to two seconds.
yield self._rpc('db.lock')
- self.result = self._db.query(**query)
+ self.result = self._client._db.query(**query)
if isinstance(self.result, kaa.notifier.InProgress):
yield self.result
self.result = self.result.get_result()
@@ -245,7 +244,7 @@
# some time until it tries again. That time is too long, it
# can take up to two seconds.
yield self._rpc('db.lock')
- result = self._db.query(**self._query)
+ result = self._client._db.query(**self._query)
if isinstance(result, kaa.notifier.InProgress):
yield result
result = result.get_result()
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog