Mercurial > libervia-pubsub
comparison 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 |
comparison
equal
deleted
inserted
replaced
145:f393bccec4bc | 146:b4490bdc77e5 |
---|---|
167 node. That is, having the state C{'subscribed'}. | 167 node. That is, having the state C{'subscribed'}. |
168 | 168 |
169 @return: a deferred that returns a L{list} of L{jid.JID}s. | 169 @return: a deferred that returns a L{list} of L{jid.JID}s. |
170 """ | 170 """ |
171 | 171 |
172 def is_subscribed(self, subscriber): | 172 def is_subscribed(self, entity): |
173 """ Returns whether subscriber has a subscription to this node. | 173 """ Returns whether entity has any subscription to this node. |
174 | 174 |
175 Only returns C{True} when the subscription state (if present) is | 175 Only returns C{True} when the subscription state (if present) is |
176 C{'subscribed'}. | 176 C{'subscribed'} for any subscription that matches the bare JID. |
177 | 177 |
178 @param subscriber: JID of the subscriptions' entity. | 178 @param subscriber: bare JID of the subscriptions' entity. |
179 @type subscriber: L{jid.JID} | 179 @type subscriber: L{jid.JID} |
180 @return: deferred that returns a L{bool}. | 180 @return: deferred that returns a L{bool}. |
181 """ | 181 """ |
182 | 182 |
183 def get_affiliations(self): | 183 def get_affiliations(self): |