comparison idavoll/storage.py @ 145:f393bccec4bc

Add get_affiliations to Node class in storage facilities in preparation of support for 'Modifying Entity Affiliations' in the JEP-0060 specification.
author Ralph Meijer <ralphm@ik.nu>
date Thu, 14 Jul 2005 20:51:48 +0000
parents 812300cdbc22
children b4490bdc77e5
comparison
equal deleted inserted replaced
144:5b0b3f013ccc 145:f393bccec4bc
176 C{'subscribed'}. 176 C{'subscribed'}.
177 177
178 @param subscriber: JID of the subscriptions' entity. 178 @param subscriber: 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 """
182
183 def get_affiliations(self):
184 """ Get affiliations of entities with this node.
185
186 @return: deferred that returns a L{list} of tuples (jid, affiliation),
187 where jid is a L(jid.JID) and affiliation is one of C{'owner'},
188 C{'publisher'}, C{'outcast'}.
181 """ 189 """
182 190
183 class ILeafNode(Interface): 191 class ILeafNode(Interface):
184 """ Interface to the class of objects that represent leaf nodes. """ 192 """ Interface to the class of objects that represent leaf nodes. """
185 193