Changeset 158:0c6854e5a924 for wokkel


Ignore:
Timestamp:
Nov 14, 2011, 6:11:59 PM (8 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
wokkel-muc-client-support-24
Children:
159:bbb746f79718, 249:74868a6cf948
Message:

Restore missing interface methods from a bad merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/iwokkel.py

    r155 r158  
    1 # Copyright (c) Ralph Meijer
     1# Copyright (c) Ralph Meijer.
    22# See LICENSE for details.
    33
     
    770770
    771771
     772    def affiliationsGet(request):
     773        """
     774        Called when a affiliations retrieval request (owner) has been received.
     775
     776        @param request: The publish-subscribe request.
     777        @type request: L{wokkel.pubsub.PubSubRequest}
     778        @return: A deferred that fires with a C{dict} of affiliations with the
     779            entity as key (L{JID}) and the affiliation state as value
     780            (C{unicode}).  The affiliation can be C{u'owner'}, C{u'publisher'},
     781            or C{u'outcast'}.
     782        @rtype: L{defer.Deferred}
     783
     784        @note: Affiliations are always on the bare JID. An implementation of
     785        this method MUST NOT return JIDs with a resource part.
     786        """
     787
     788
     789    def affiliationsSet(request):
     790        """
     791        Called when a affiliations modify request has been received.
     792
     793        @param request: The publish-subscribe request.
     794        @type request: L{wokkel.pubsub.PubSubRequest}
     795        @return: A deferred that fires with C{None} when the affiliation
     796            changes were succesfully processed..
     797        @rtype: L{defer.Deferred}
     798
     799        @note: Affiliations are always on the bare JID. The JIDs in
     800        L{wokkel.pubsub.PubSubRequest.affiliations} are already stripped of
     801        any resource.
     802        """
     803
     804
    772805
    773806class IMUCClient(Interface):
Note: See TracChangeset for help on using the changeset viewer.