Mercurial > libervia-pubsub
diff idavoll/storage.py @ 146:b4490bdc77e5
Change semantics of Node.is_subscribed() to match all subscriptions for an
entity (all resources).
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Fri, 29 Jul 2005 15:33:43 +0000 |
parents | f393bccec4bc |
children | ea8b4189ae3b |
line wrap: on
line diff
--- a/idavoll/storage.py Thu Jul 14 20:51:48 2005 +0000 +++ b/idavoll/storage.py Fri Jul 29 15:33:43 2005 +0000 @@ -169,13 +169,13 @@ @return: a deferred that returns a L{list} of L{jid.JID}s. """ - def is_subscribed(self, subscriber): - """ Returns whether subscriber has a subscription to this node. + def is_subscribed(self, entity): + """ Returns whether entity has any subscription to this node. Only returns C{True} when the subscription state (if present) is - C{'subscribed'}. + C{'subscribed'} for any subscription that matches the bare JID. - @param subscriber: JID of the subscriptions' entity. + @param subscriber: bare JID of the subscriptions' entity. @type subscriber: L{jid.JID} @return: deferred that returns a L{bool}. """