diff options
Diffstat (limited to 'examples/custom_stanzas/stanza.py')
-rw-r--r-- | examples/custom_stanzas/stanza.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/custom_stanzas/stanza.py b/examples/custom_stanzas/stanza.py index 50d0f9f2..b2c6f766 100644 --- a/examples/custom_stanzas/stanza.py +++ b/examples/custom_stanzas/stanza.py @@ -1,30 +1,30 @@ -from sleekxmpp.xmlstream import ElementBase +from slixmpp.xmlstream import ElementBase class Action(ElementBase): """ A stanza class for XML content of the form: - <action xmlns="sleekxmpp:custom:actions"> + <action xmlns="slixmpp:custom:actions"> <method>X</method> <param>X</param> <status>X</status> </action> """ - + #: The `name` field refers to the basic XML tag name of the #: stanza. Here, the tag name will be 'action'. name = 'action' #: The namespace of the main XML tag. - namespace = 'sleekxmpp:custom:actions' + namespace = 'slixmpp:custom:actions' #: The `plugin_attrib` value is the name that can be used #: with a parent stanza to access this stanza. For example #: from an Iq stanza object, accessing: - #: + #: #: iq['action'] - #: + #: #: would reference an Action object, and will even create #: an Action object and append it to the Iq stanza if #: one doesn't already exist. @@ -49,8 +49,8 @@ class Action(ElementBase): #: the sub_interfaces set. For example, here all interfaces #: are marked as sub_interfaces, and so the XML produced will #: look like: - #: - #: <action xmlns="sleekxmpp:custom:actions"> + #: + #: <action xmlns="slixmpp:custom:actions"> #: <method>foo</method> #: </action> sub_interfaces = interfaces |