On 2007-06-28 14:39, Dirk Meyer wrote:
> -        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():
>   

Hmm, this actually isn't quite what I had in mind for kaa.db.query() ...

The idea here is that it could return results incrementally rather than
all at once.  So it could return say the first 100 items but also yield
InProgress, and then return the next handful, etc.  How do you think
that should be implemented?

-------------------------------------------------------------------------
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

Reply via email to