Mercurial > libervia-pubsub
diff idavoll/storage.py @ 142:812300cdbc22
Changed behaviour of retraction of items so that only the actually deleted
item ids are returned, and no exception is raised for items that didn't
actually exists.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Tue, 12 Jul 2005 09:23:00 +0000 |
parents | b27a66637a10 |
children | f393bccec4bc |
line wrap: on
line diff
--- a/idavoll/storage.py Tue Jun 14 12:12:23 2005 +0000 +++ b/idavoll/storage.py Tue Jul 12 09:23:00 2005 +0000 @@ -17,9 +17,6 @@ class SubscriptionExists(Error): pass -class ItemNotFound(Error): - pass - class IStorage(Interface): """ Storage interface """ @@ -203,8 +200,8 @@ """ Remove items by id @param item_ids: L{list} of item ids. - @return: deferred that fires when all given items were deleted, or - a failure if one of them was not found. + @return: deferred that fires with a L{list} of ids of the items that + were deleted """ def get_items(self, max_items=None): @@ -217,7 +214,7 @@ @param max_items: if given, a natural number (>0) that limits the returned number of items. - @return: deferred that fires with a C{list} of found items. + @return: deferred that fires with a L{list} of found items. """ def get_items_by_id(self, item_ids): @@ -228,7 +225,7 @@ item wrapper with item id. @param item_ids: L{list} of item ids. - @return: deferred that fires with a C{list} of found items. + @return: deferred that fires with a L{list} of found items. """ def purge(self):