Changeset 166:d9c10a5b5c0d for wokkel/pubsub.py
- Timestamp:
- Jan 23, 2012, 3:48:48 PM (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/pubsub.py
r165 r166 169 169 """ 170 170 @param id: optional item identifier 171 @type id: L{unicode}171 @type id: C{unicode} 172 172 @param payload: optional item payload. Either as a domish element, or 173 173 as serialized XML. 174 @type payload: object providing L{domish.IElement} or L{unicode}.174 @type payload: object providing L{domish.IElement} or C{unicode}. 175 175 """ 176 176 … … 194 194 C{None}. 195 195 196 @ivar verb: The type of publish-subscribe request. See L{_requestVerbMap}.196 @ivar verb: The type of publish-subscribe request. See C{_requestVerbMap}. 197 197 @type verb: C{str}. 198 198 199 199 @ivar affiliations: Affiliations to be modified. 200 200 @type affiliations: C{set} 201 201 202 @ivar items: The items to be published, as L{domish.Element}s. 202 203 @type items: C{list} 204 203 205 @ivar itemIdentifiers: Identifiers of the items to be retrieved or 204 206 retracted. 205 207 @type itemIdentifiers: C{set} 208 206 209 @ivar maxItems: Maximum number of items to retrieve. 207 210 @type maxItems: C{int}. 211 208 212 @ivar nodeIdentifier: Identifier of the node the request is about. 209 213 @type nodeIdentifier: C{unicode} 214 210 215 @ivar nodeType: The type of node that should be created, or for which the 211 216 configuration is retrieved. C{'leaf'} or C{'collection'}. 212 217 @type nodeType: C{str} 218 213 219 @ivar options: Configurations options for nodes, subscriptions and publish 214 220 requests. 215 221 @type options: L{data_form.Form} 222 216 223 @ivar subscriber: The subscribing entity. 217 @type subscriber: L{JID} 224 @type subscriber: L{JID<twisted.words.protocols.jabber.jid.JID>} 225 218 226 @ivar subscriptionIdentifier: Identifier for a specific subscription. 219 227 @type subscriptionIdentifier: C{unicode} 228 220 229 @ivar subscriptions: Subscriptions to be modified, as a set of 221 230 L{Subscription}. 222 231 @type subscriptions: C{set} 232 223 233 @ivar affiliations: Affiliations to be modified, as a dictionary of entity 224 (L{JID} to affiliation (C{unicode}). 234 (L{JID<twisted.words.protocols.jabber.jid.JID>} to affiliation 235 (C{unicode}). 225 236 @type affiliations: C{dict} 226 237 """ … … 599 610 600 611 @param xs: The XML stream to send the request on. 601 @type xs: L{ xmlstream.XmlStream}612 @type xs: L{twisted.words.protocols.jabber.xmlstream.XmlStream} 602 613 @rtype: L{defer.Deferred}. 603 614 """ … … 637 648 @type nodeIdentifier: C{unicode} 638 649 @param headers: SHIM headers, see L{wokkel.shim.extractHeaders}. 639 @type headers: L{dict}650 @type headers: C{dict} 640 651 """ 641 652 … … 758 769 759 770 @param service: The publish subscribe service to create the node at. 760 @type service: L{JID }771 @type service: L{JID<twisted.words.protocols.jabber.jid.JID>} 761 772 @param nodeIdentifier: Optional suggestion for the id of the node. 762 773 @type nodeIdentifier: C{unicode} … … 793 804 794 805 @param service: The publish subscribe service to delete the node from. 795 @type service: L{JID }806 @type service: L{JID<twisted.words.protocols.jabber.jid.JID>} 796 807 @param nodeIdentifier: The identifier of the node. 797 808 @type nodeIdentifier: C{unicode} … … 810 821 811 822 @param service: The publish subscribe service that keeps the node. 812 @type service: L{JID }823 @type service: L{JID<twisted.words.protocols.jabber.jid.JID>} 813 824 814 825 @param nodeIdentifier: The identifier of the node. … … 817 828 @param subscriber: The entity to subscribe to the node. This entity 818 829 will get notifications of new published items. 819 @type subscriber: L{JID }830 @type subscriber: L{JID<twisted.words.protocols.jabber.jid.JID>} 820 831 821 832 @param options: Subscription options. … … 862 873 863 874 @param service: The publish subscribe service that keeps the node. 864 @type service: L{JID }875 @type service: L{JID<twisted.words.protocols.jabber.jid.JID>} 865 876 866 877 @param nodeIdentifier: The identifier of the node. … … 868 879 869 880 @param subscriber: The entity to unsubscribe from the node. 870 @type subscriber: L{JID }881 @type subscriber: L{JID<twisted.words.protocols.jabber.jid.JID>} 871 882 872 883 @param subscriptionIdentifier: Optional subscription identifier. … … 887 898 888 899 @param service: The publish subscribe service that keeps the node. 889 @type service: L{JID }900 @type service: L{JID<twisted.words.protocols.jabber.jid.JID>} 890 901 @param nodeIdentifier: The identifier of the node. 891 902 @type nodeIdentifier: C{unicode} … … 907 918 908 919 @param service: The publish subscribe service that keeps the node. 909 @type service: L{JID }920 @type service: L{JID<twisted.words.protocols.jabber.jid.JID>} 910 921 911 922 @param nodeIdentifier: The identifier of the node. … … 946 957 947 958 @param service: The publish subscribe service that keeps the node. 948 @type service: L{JID }959 @type service: L{JID<twisted.words.protocols.jabber.jid.JID>} 949 960 950 961 @param nodeIdentifier: The identifier of the node. … … 952 963 953 964 @param subscriber: The entity subscribed to the node. 954 @type subscriber: L{JID }965 @type subscriber: L{JID<twisted.words.protocols.jabber.jid.JID>} 955 966 956 967 @param subscriptionIdentifier: Optional subscription identifier. … … 983 994 984 995 @param service: The publish subscribe service that keeps the node. 985 @type service: L{JID }996 @type service: L{JID<twisted.words.protocols.jabber.jid.JID>} 986 997 987 998 @param nodeIdentifier: The identifier of the node. … … 989 1000 990 1001 @param subscriber: The entity subscribed to the node. 991 @type subscriber: L{JID }1002 @type subscriber: L{JID<twisted.words.protocols.jabber.jid.JID>} 992 1003 993 1004 @param options: Subscription options. … … 1022 1033 subscriptions, and sending out notifications. 1023 1034 1024 Methods from the L{IPubSubService} interface that are called as 1025 a result of an XMPP request may raise exceptions. Alternatively the1026 deferred returned by these methods may have their errback called. These are1027 handledas follows:1035 Methods from the L{IPubSubService} interface that are called as a result 1036 of an XMPP request may raise exceptions. Alternatively the deferred 1037 returned by these methods may have their errback called. These are handled 1038 as follows: 1028 1039 1029 1040 - If the exception is an instance of L{error.StanzaError}, an error
Note: See TracChangeset
for help on using the changeset viewer.