Ignore:
Timestamp:
Aug 30, 2016, 9:41:31 PM (5 years ago)
Author:
souliane <souliane@…>
Branch:
default
committer:
souliane <souliane@mailoo.org> 1472587320 -7200
hg-git-rename-source:
git
Message:

implement item retrieval by IDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/pubsub.py

    r166 r220  
    912912
    913913
    914     def items(self, service, nodeIdentifier, maxItems=None,
     914    def items(self, service, nodeIdentifier, maxItems=None, itemIdentifiers=None,
    915915              subscriptionIdentifier=None, sender=None):
    916916        """
     
    925925        @param maxItems: Optional limit on the number of retrieved items.
    926926        @type maxItems: C{int}
     927
     928        @param itemIdentifiers: Identifiers of the items to be retrieved.
     929        @type itemIdentifiers: C{set}
    927930
    928931        @param subscriptionIdentifier: Optional subscription identifier. In
     
    938941        request.subscriptionIdentifier = subscriptionIdentifier
    939942        request.sender = sender
     943        request.itemIdentifiers = itemIdentifiers
    940944
    941945        def cb(iq):
Note: See TracChangeset for help on using the changeset viewer.