XEP 0060

1.6 Documentation

«  XEP 0059   ::   Contents   ::   XEP 0065  »

XEP 0060

class slixmpp.plugins.xep_0060.XEP_0060(xmpp, config=None)[source]

XEP-0060 Publish Subscribe

create_node(jid, node, config=None, ntype=None, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Create and configure a new pubsub node.

A server MAY use a different name for the node than the one provided, so be sure to check the result stanza for a server assigned name.

If no configuration form is provided, the node will be created using the server’s default configuration. To get the default configuration use get_node_config().

Parameters
  • jid – The JID of the pubsub service.

  • node – Optional name of the node to create. If no name is provided, the server MAY generate a node ID for you. The server can also assign a different name than the one you provide; check the result stanza to see if the server assigned a name.

  • config – Optional XEP-0004 data form of configuration settings.

  • ntype – The type of node to create. Servers typically default to using ‘leaf’ if no type is provided.

delete_node(jid, node, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Delete a a pubsub node.

Parameters
  • jid – The JID of the pubsub service.

  • node – The node to delete.

get_item(jid, node, item_id, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Retrieve the content of an individual item.

get_item_ids(jid, node, ifrom=None, timeout_callback=None, callback=None, timeout=None, iterator=False)[source]

Retrieve the ItemIDs hosted by a given node, using disco.

get_items(jid, node, item_ids=None, max_items=None, iterator=False, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Request the contents of a node’s items.

The desired items can be specified, or a query for the last few published items can be used.

Pubsub services may use result set management for nodes with many items, so an iterator can be returned if needed.

get_node_affiliations(jid, node, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Retrieve the affiliations associated with a given node.

Parameters
  • jid – The JID of the pubsub service.

  • node – The node to retrieve affiliations from.

get_node_config(jid, node=None, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Retrieve the configuration for a node, or the pubsub service’s default configuration for new nodes.

Parameters
  • jid – The JID of the pubsub service.

  • node – The node to retrieve the configuration for. If None, the default configuration for new nodes will be requested. Defaults to None.

get_node_subscriptions(jid, node, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Retrieve the subscriptions associated with a given node.

Parameters
  • jid – The JID of the pubsub service.

  • node – The node to retrieve subscriptions from.

get_nodes(*args, **kwargs)[source]

Discover the nodes provided by a Pubsub service, using disco.

map_node_event(node, event_name)[source]

Map node names to events.

When a pubsub event is received for the given node, raise the provided event.

For example:

map_node_event('http://jabber.org/protocol/tune',
               'user_tune')

will produce the events ‘user_tune_publish’ and ‘user_tune_retract’ when the respective notifications are received from the node ‘http://jabber.org/protocol/tune’, among other events.

Parameters
  • node – The node name to map to an event.

  • event_name – The name of the event to raise when a notification from the given node is received.

publish(jid, node, id=None, payload=None, options=None, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Add a new item to a node, or edit an existing item.

For services that support it, you can use the publish command as an event signal by not including an ID or payload.

When including a payload and you do not provide an ID then the service will generally create an ID for you.

Publish options may be specified, and how those options are processed is left to the service, such as treating the options as preconditions that the node’s settings must match.

Parameters
  • jid – The JID of the pubsub service.

  • node – The node to publish the item to.

  • id – Optionally specify the ID of the item.

  • payload – The item content to publish.

  • options – A form of publish options.

purge(jid, node, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Remove all items from a node.

retract(jid, node, id, notify=None, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Delete a single item from a node.

stanza = <module 'slixmpp.plugins.xep_0060.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.6.0/slixmpp/plugins/xep_0060/stanza/__init__.py'>
subscribe(jid, node, bare=True, subscribee=None, options=None, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Subscribe to updates from a pubsub node.

The rules for determining the JID that is subscribing to the node are: 1. If subscribee is given, use that as provided. 2. If ifrom was given, use the bare or full version based on bare. 3. Otherwise, use self.xmpp.boundjid based on bare.

Parameters
  • jid – The pubsub service JID.

  • node – The node to subscribe to.

  • bare – Indicates if the subscribee is a bare or full JID. Defaults to True for a bare JID.

  • subscribee – The JID that is subscribing to the node.

  • options

unsubscribe(jid, node, subid=None, bare=True, subscribee=None, ifrom=None, timeout_callback=None, callback=None, timeout=None)[source]

Unubscribe from updates from a pubsub node.

The rules for determining the JID that is unsubscribing from the node are: 1. If subscribee is given, use that as provided. 2. If ifrom was given, use the bare or full version based on bare. 3. Otherwise, use self.xmpp.boundjid based on bare.

Parameters
  • jid – The pubsub service JID.

  • node – The node to unsubscribe from.

  • subid – The specific subscription, if multiple subscriptions exist for this JID/node combination.

  • bare – Indicates if the subscribee is a bare or full JID. Defaults to True for a bare JID.

  • subscribee – The JID that is unsubscribing from the node.

Stanza elements

Slixmpp: The Slick XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of Slixmpp.

See the file LICENSE for copying permission.

class slixmpp.plugins.xep_0060.stanza.base.OptionalSetting[source]
del_required()[source]
get_required()[source]
interfaces = {'required'}
set_required(value)[source]

Slixmpp: The Slick XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of Slixmpp.

See the file LICENSE for copying permission.

class slixmpp.plugins.xep_0060.stanza.pubsub.Affiliation(xml=None, parent=None)[source]
get_jid()[source]
interfaces = {'affiliation', 'jid', 'node'}
name = 'affiliation'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'affiliation'
set_jid(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub.Affiliations(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'affiliations'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'affiliations'
plugin_attrib_map = {'affiliation': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Affiliation'>}
plugin_iterables = {<class 'slixmpp.plugins.xep_0060.stanza.pubsub.Affiliation'>}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub}affiliation': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Affiliation'>}
class slixmpp.plugins.xep_0060.stanza.pubsub.Configure(xml=None, parent=None)[source]
getType()[source]
interfaces = {'node', 'type'}
name = 'configure'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'configure'
plugin_attrib_map = {'form': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{jabber:x:data}x': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
class slixmpp.plugins.xep_0060.stanza.pubsub.Create(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'create'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'create'
class slixmpp.plugins.xep_0060.stanza.pubsub.Default(xml=None, parent=None)[source]
get_type()[source]
interfaces = {'node', 'type'}
name = 'default'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'default'
class slixmpp.plugins.xep_0060.stanza.pubsub.Item(xml=None, parent=None)[source]
del_payload()[source]
get_payload()[source]
interfaces = {'id', 'payload'}
name = 'item'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'item'
set_payload(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub.Items(xml=None, parent=None)[source]
interfaces = {'max_items', 'node'}
name = 'items'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'items'
plugin_attrib_map = {'item': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Item'>}
plugin_iterables = {<class 'slixmpp.plugins.xep_0060.stanza.pubsub.Item'>}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub}item': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Item'>}
set_max_items(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub.Options(*args, **kwargs)[source]
del_options()[source]
get_jid()[source]
get_options()[source]
interfaces = {'jid', 'node', 'options'}
name = 'options'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'options'
set_jid(value)[source]
set_options(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub.Publish(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'publish'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'publish'
plugin_attrib_map = {'item': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Item'>}
plugin_iterables = {<class 'slixmpp.plugins.xep_0060.stanza.pubsub.Item'>}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub}item': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Item'>}
class slixmpp.plugins.xep_0060.stanza.pubsub.PublishOptions(xml=None, parent=None)[source]
del_publish_options()[source]
get_publish_options()[source]
interfaces = {'publish_options'}
is_extension = True
name = 'publish-options'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'publish_options'
set_publish_options(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub.Pubsub(xml=None, parent=None)[source]
interfaces = {}
name = 'pubsub'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'pubsub'
plugin_attrib_map = {'affiliations': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Affiliations'>, 'configure': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Configure'>, 'create': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Create'>, 'default': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Default'>, 'items': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Items'>, 'options': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Options'>, 'publish': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Publish'>, 'publish_options': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.PublishOptions'>, 'retract': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Retract'>, 'subscribe': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscribe'>, 'subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscription'>, 'subscriptions': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscriptions'>, 'unsubscribe': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Unsubscribe'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub}affiliations': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Affiliations'>, '{http://jabber.org/protocol/pubsub}configure': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Configure'>, '{http://jabber.org/protocol/pubsub}create': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Create'>, '{http://jabber.org/protocol/pubsub}default': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Default'>, '{http://jabber.org/protocol/pubsub}items': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Items'>, '{http://jabber.org/protocol/pubsub}options': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Options'>, '{http://jabber.org/protocol/pubsub}publish': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Publish'>, '{http://jabber.org/protocol/pubsub}publish-options': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.PublishOptions'>, '{http://jabber.org/protocol/pubsub}retract': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Retract'>, '{http://jabber.org/protocol/pubsub}subscribe': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscribe'>, '{http://jabber.org/protocol/pubsub}subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscription'>, '{http://jabber.org/protocol/pubsub}subscriptions': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscriptions'>, '{http://jabber.org/protocol/pubsub}unsubscribe': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Unsubscribe'>}
class slixmpp.plugins.xep_0060.stanza.pubsub.Retract(xml=None, parent=None)[source]
get_notify()[source]
interfaces = {'node', 'notify'}
name = 'retract'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'retract'
plugin_attrib_map = {'item': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Item'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub}item': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Item'>}
set_notify(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub.Subscribe(xml=None, parent=None)[source]
get_jid()[source]
interfaces = {'jid', 'node'}
name = 'subscribe'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'subscribe'
plugin_attrib_map = {'options': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Options'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub}options': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Options'>}
set_jid(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub.SubscribeOptions(xml=None, parent=None)[source]
interfaces = {'required'}
name = 'subscribe-options'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'suboptions'
class slixmpp.plugins.xep_0060.stanza.pubsub.Subscription(xml=None, parent=None)[source]
get_jid()[source]
interfaces = {'jid', 'node', 'subid', 'subscription'}
name = 'subscription'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'subscription'
plugin_attrib_map = {'suboptions': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.SubscribeOptions'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub}subscribe-options': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.SubscribeOptions'>}
set_jid(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub.Subscriptions(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'subscriptions'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'subscriptions'
plugin_attrib_map = {'subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscription'>}
plugin_iterables = {<class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscription'>}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub}subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscription'>}
class slixmpp.plugins.xep_0060.stanza.pubsub.Unsubscribe(xml=None, parent=None)[source]
get_jid()[source]
interfaces = {'jid', 'node', 'subid'}
name = 'unsubscribe'
namespace = 'http://jabber.org/protocol/pubsub'
plugin_attrib = 'unsubscribe'
set_jid(value)[source]

Slixmpp: The Slick XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of Slixmpp.

See the file LICENSE for copying permission.

class slixmpp.plugins.xep_0060.stanza.pubsub_errors.PubsubErrorCondition(xml=None, parent=None)[source]
condition_ns = 'http://jabber.org/protocol/pubsub#errors'
conditions = {'closed-node', 'configuration-required', 'invalid-jid', 'invalid-options', 'invalid-payload', 'invalid-subid', 'item-forbidden', 'item-required', 'jid-required', 'max-items-exceeded', 'max-nodes-exceeded', 'nodeid-required', 'not-in-roster-group', 'not-subscribed', 'payload-required', 'payload-too-big', 'pending-subscription', 'presence-subscription-required', 'subid-required', 'too-many-subscriptions', 'unsupported'}
del_condition()[source]

Remove the condition element.

del_unsupported()[source]

Delete an unsupported feature condition.

get_condition()[source]

Return the condition element’s name.

get_unsupported()[source]

Return the name of an unsupported feature

interfaces = {'condition', 'unsupported'}
plugin_attrib = 'pubsub'
plugin_attrib_map = {}
plugin_tag_map = {}
set_condition(value)[source]

Set the tag name of the condition element.

Arguments:

value – The tag name of the condition element.

set_unsupported(value)[source]

Mark a feature as unsupported

setup(xml)[source]

Don’t create XML for the plugin.

Slixmpp: The Slick XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of Slixmpp.

See the file LICENSE for copying permission.

class slixmpp.plugins.xep_0060.stanza.pubsub_owner.DefaultConfig(*args, **kwargs)[source]
get_config()[source]
interfaces = {'config', 'node'}
name = 'default'
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib = 'default'
plugin_attrib_map = {'form': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{jabber:x:data}x': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
set_config(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerAffiliation(xml=None, parent=None)[source]
interfaces = {'affiliation', 'jid'}
namespace = 'http://jabber.org/protocol/pubsub#owner'
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerAffiliations(xml=None, parent=None)[source]
append(affiliation)[source]

Append either an XML object or a substanza to this stanza object.

If a substanza object is appended, it will be added to the list of iterable stanzas.

Allows stanza objects to be used like lists.

Parameters

item – Either an XML object or a stanza object to add to this stanza’s contents.

interfaces = {'node'}
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib_map = {'affiliation': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerAffiliation'>}
plugin_iterables = {<class 'slixmpp.plugins.xep_0060.stanza.pubsub.Affiliation'>, <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerAffiliation'>}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub#owner}affiliation': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerAffiliation'>, '{http://jabber.org/protocol/pubsub}affiliation': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Affiliation'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerConfigure(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'configure'
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib = 'configure'
plugin_attrib_map = {'form': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{jabber:x:data}x': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerDefault(xml=None, parent=None)[source]
interfaces = {'node'}
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib_map = {'form': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{jabber:x:data}x': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerDelete(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'delete'
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib = 'delete'
plugin_attrib_map = {'redirect': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerRedirect'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub#owner}redirect': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerRedirect'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerPurge(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'purge'
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib = 'purge'
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerRedirect(xml=None, parent=None)[source]
get_jid()[source]
interfaces = {'jid', 'node'}
name = 'redirect'
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib = 'redirect'
set_jid(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerSubscription(xml=None, parent=None)[source]
get_jid()[source]
interfaces = {'jid', 'subscription'}
name = 'subscription'
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib = 'subscription'
set_jid(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerSubscriptions(xml=None, parent=None)[source]
append(subscription)[source]

Append either an XML object or a substanza to this stanza object.

If a substanza object is appended, it will be added to the list of iterable stanzas.

Allows stanza objects to be used like lists.

Parameters

item – Either an XML object or a stanza object to add to this stanza’s contents.

interfaces = {'node'}
name = 'subscriptions'
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib = 'subscriptions'
plugin_attrib_map = {'subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerSubscription'>}
plugin_iterables = {<class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerSubscription'>, <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscription'>}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub#owner}subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerSubscription'>, '{http://jabber.org/protocol/pubsub}subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub.Subscription'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_owner.PubsubOwner(xml=None, parent=None)[source]
interfaces = {}
name = 'pubsub'
namespace = 'http://jabber.org/protocol/pubsub#owner'
plugin_attrib = 'pubsub_owner'
plugin_attrib_map = {'affiliations': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerAffiliations'>, 'configure': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerDefault'>, 'default': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.DefaultConfig'>, 'delete': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerDelete'>, 'purge': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerPurge'>, 'subscriptions': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerSubscriptions'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub#owner}affiliations': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerAffiliations'>, '{http://jabber.org/protocol/pubsub#owner}configure': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerDefault'>, '{http://jabber.org/protocol/pubsub#owner}default': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.DefaultConfig'>, '{http://jabber.org/protocol/pubsub#owner}delete': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerDelete'>, '{http://jabber.org/protocol/pubsub#owner}purge': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerPurge'>, '{http://jabber.org/protocol/pubsub#owner}subscriptions': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_owner.OwnerSubscriptions'>}

Slixmpp: The Slick XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of Slixmpp.

See the file LICENSE for copying permission.

class slixmpp.plugins.xep_0060.stanza.pubsub_event.Event(xml=None, parent=None)[source]
interfaces = {}
name = 'event'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'pubsub_event'
plugin_attrib_map = {'collection': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventCollection'>, 'configuration': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventConfiguration'>, 'delete': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventDelete'>, 'items': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventItems'>, 'purge': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventPurge'>, 'subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventSubscription'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub#event}collection': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventCollection'>, '{http://jabber.org/protocol/pubsub#event}configuration': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventConfiguration'>, '{http://jabber.org/protocol/pubsub#event}delete': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventDelete'>, '{http://jabber.org/protocol/pubsub#event}items': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventItems'>, '{http://jabber.org/protocol/pubsub#event}purge': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventPurge'>, '{http://jabber.org/protocol/pubsub#event}subscription': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventSubscription'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventAssociate(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'associate'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'associate'
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventCollection(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'collection'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'collection'
plugin_attrib_map = {'associate': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventAssociate'>, 'disassociate': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventDisassociate'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub#event}associate': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventAssociate'>, '{http://jabber.org/protocol/pubsub#event}disassociate': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventDisassociate'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventConfiguration(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'configuration'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'configuration'
plugin_attrib_map = {'form': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
plugin_iterables = {}
plugin_overrides = {}
plugin_tag_map = {'{jabber:x:data}x': <class 'slixmpp.plugins.xep_0004.stanza.form.Form'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventDelete(xml=None, parent=None)[source]
del_redirect()[source]
get_redirect()[source]
interfaces = {'node', 'redirect'}
name = 'delete'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'delete'
set_redirect(uri)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventDisassociate(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'disassociate'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'disassociate'
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventItem(xml=None, parent=None)[source]
del_payload()[source]
get_payload()[source]
interfaces = {'id', 'node', 'payload', 'publisher'}
name = 'item'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'item'
set_payload(value)[source]
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventItems(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'items'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'items'
plugin_attrib_map = {'item': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventItem'>, 'retract': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventRetract'>}
plugin_iterables = {<class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventRetract'>, <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventItem'>}
plugin_overrides = {}
plugin_tag_map = {'{http://jabber.org/protocol/pubsub#event}item': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventItem'>, '{http://jabber.org/protocol/pubsub#event}retract': <class 'slixmpp.plugins.xep_0060.stanza.pubsub_event.EventRetract'>}
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventPurge(xml=None, parent=None)[source]
interfaces = {'node'}
name = 'purge'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'purge'
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventRetract(xml=None, parent=None)[source]
interfaces = {'id'}
name = 'retract'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'retract'
class slixmpp.plugins.xep_0060.stanza.pubsub_event.EventSubscription(xml=None, parent=None)[source]
get_expiry()[source]
get_jid()[source]
interfaces = {'expiry', 'jid', 'node', 'subid', 'subscription'}
name = 'subscription'
namespace = 'http://jabber.org/protocol/pubsub#event'
plugin_attrib = 'subscription'
set_expiry(value)[source]
set_jid(value)[source]

«  XEP 0059   ::   Contents   ::   XEP 0065  »