Jason Tackaberry wrote:
> 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?I don't know who. You get either InProgress or a result. BUT the result you get could be something you can iterate. But something like that is not implemented yet, in fact, I need a sorted result list to find changes very fast. So I always need everything. Dischi -- Having trouble in Windows? Reboot! Having trouble in Linux? Be root!
pgpQeqKSznhVa.pgp
Description: PGP signature
------------------------------------------------------------------------- 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
