Author: dmeyer
Date: Wed Feb 13 16:23:37 2008
New Revision: 3087
Log:
use signal feature for YieldCallback
Modified:
trunk/beacon/src/query.py
trunk/beacon/src/server/db.py
Modified: trunk/beacon/src/query.py
==============================================================================
--- trunk/beacon/src/query.py (original)
+++ trunk/beacon/src/query.py Wed Feb 13 16:23:37 2008
@@ -192,9 +192,7 @@
"""
if not self._client.is_connected():
# wait until the client is connected
- wait = kaa.YieldCallback()
- self._client.signals['connect'].connect_once(wait)
- yield wait
+ yield kaa.YieldCallback(self._client.signals['connect'])
if 'parent' in query and isinstance(query['parent'], Item) and \
not query['parent']._beacon_id:
Modified: trunk/beacon/src/server/db.py
==============================================================================
--- trunk/beacon/src/server/db.py (original)
+++ trunk/beacon/src/server/db.py Wed Feb 13 16:23:37 2008
@@ -96,12 +96,10 @@
def yield_unlock(self):
"""
- Return YieldCallback object to wait until the db is
+ Return InProgress object to wait until the db is
not used by any reader.
"""
- cb = kaa.YieldCallback()
- self.signals['unlock'].connect_once(cb)
- return cb
+ return kaa.YieldCallback(self.signals['unlock'])
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog