Ignore:
Timestamp:
Oct 27, 2008, 2:21:23 PM (13 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@127
Message:

Add support for sending and receiving node delete notifications with redirect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/iwokkel.py

    r31 r43  
    270270        """
    271271
    272     def notifyDelete(service, nodeIdentifier, subscriptions):
     272    def notifyDelete(service, nodeIdentifier, subscribers,
     273                     redirectURI=None):
    273274        """
    274275        Send out node deletion notifications.
     
    278279        @param nodeIdentifier: The identifier of the node that was deleted.
    279280        @type nodeIdentifier: C{unicode}
    280         @param subscriptions: The subscriptions for which a notification should
    281                               be sent out.
    282         @type subscriptions: C{list} of L{jid.JID}
     281        @param subscribers: The subscribers for which a notification should
     282                            be sent out.
     283        @type subscribers: C{list} of L{jid.JID}
     284        @param redirectURI: Optional XMPP URI of another node that subscribers
     285                            are redirected to.
     286        @type redirectURI: C{str}
    283287        """
    284288
     
    414418        """
    415419
    416     def getDefaultConfiguration(requestor, service):
     420    def getDefaultConfiguration(requestor, service, nodeType):
    417421        """
    418422        Called when a default node configuration request has been received.
     
    422426        @param service: The entity the request was addressed to.
    423427        @type service: L{jid.JID}
     428        @param nodeType: The type of node for which the configuration is
     429                         retrieved, C{'leaf'} or C{'collection'}.
     430        @type nodeType: C{str}
    424431        @return: A deferred that fires with a C{dict} representing the default
    425432                 node configuration. Keys are C{str}s that represent the
Note: See TracChangeset for help on using the changeset viewer.