Mercurial > libervia-pubsub
diff 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 |
line wrap: on
line diff
--- a/idavoll/storage.py Tue Jul 12 14:53:23 2005 +0000 +++ b/idavoll/storage.py Thu Jul 14 20:51:48 2005 +0000 @@ -180,6 +180,14 @@ @return: deferred that returns a L{bool}. """ + def get_affiliations(self): + """ Get affiliations of entities with this node. + + @return: deferred that returns a L{list} of tuples (jid, affiliation), + where jid is a L(jid.JID) and affiliation is one of C{'owner'}, + C{'publisher'}, C{'outcast'}. + """ + class ILeafNode(Interface): """ Interface to the class of objects that represent leaf nodes. """