Author: dmeyer
Date: Thu Feb 14 06:15:52 2008
New Revision: 3094
Log:
adjust to coroutine changes
Modified:
trunk/beacon/src/db.py
Modified: trunk/beacon/src/db.py
==============================================================================
--- trunk/beacon/src/db.py (original)
+++ trunk/beacon/src/db.py Thu Feb 14 06:15:52 2008
@@ -173,9 +173,9 @@
# do query based on type
if 'filename' in query and qlen == 1:
fname = os.path.realpath(query['filename'])
- return kaa.coroutine()(self.query_filename)(fname)
+ return kaa.InProgress().execute(self.query_filename, fname)
if 'id' in query and qlen == 1:
- return kaa.coroutine()(self._db_query_id)(query['id'])
+ return kaa.InProgress().execute(self._db_query_id, query['id'])
if 'parent' in query and 'recursive' in query and qlen == 2:
if not query['parent']._beacon_isdir:
raise AttributeError('parent is no directory')
@@ -186,9 +186,9 @@
return self._db_query_dir(query['parent'])
query['parent'] = query['parent']._beacon_id
if 'attr' in query:
- return kaa.coroutine()(self._db_query_attr)(query)
+ return kaa.InProgress().execute(self._db_query_attr, query)
if 'type' in query and query['type'] == 'media':
- return kaa.coroutine()(self._db.query)(**query)
+ return kaa.InProgress().execute(self._db.query, **query)
return self._db_query_raw(query)
-------------------------------------------------------------------------
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