Author: dmeyer
Date: Thu Jun 28 18:39:45 2007
New Revision: 2742
Modified:
trunk/WIP/beacon2/src/server/parser.py
Log:
parser can handle queries if async return
Modified: trunk/WIP/beacon2/src/server/parser.py
==============================================================================
--- trunk/WIP/beacon2/src/server/parser.py (original)
+++ trunk/WIP/beacon2/src/server/parser.py Thu Jun 28 18:39:45 2007
@@ -299,7 +299,11 @@
log.error('%s metadata has no type', item)
yield produced_load
# delete all known tracks before adding new
- for track in db.query(parent=item):
+ result = db.query(parent=item)
+ if isinstance(result, kaa.notifier.InProgress):
+ yield result
+ result = result()
+ for track in result:
db.delete_object(track)
if not 'track_%s' % metadata.get('type').lower() in \
db.object_types().keys():
-------------------------------------------------------------------------
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