| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package protocols :: Package jabber :: Module client :: Class IQ |
|
object--+ |Element--+ | IQ
Wrapper for a Info/Query packet
This provides the necessary functionality to send IQs and get notified when a result comes back. It's a subclass from domish.Element, so you can use the standard DOM manipulation calls to add data to the outbound request.| Method Summary | |
|---|---|
| |
_resultEvent(self,
iq)
| |
Register a callback for notification when the IQ result is available. | |
Call this method to send this IQ request via the associated XmlStream | |
| Inherited from Element | |
| |
| |
| |
| |
Retrieve the first CData (content) node | |
Dequalify an attribute key as needed | |
Add a child to this Element | |
Add some text data to this element | |
Add a new child Element to this Element; preferred method | |
Add a pre-serialized chunk o' XML as a child of this Element. | |
Add a unique (across a given Python session) id attribute to this Element | |
Safely compare the value of an attribute against a provided value; None-safe. | |
Iterate across all children of this Element that are Elements | |
| |
Retrieve the value of attribname, if it exists | |
Determine if the specified attribute exists | |
Swap the values of two attribute | |
Serialize this Element and all children to a string | |
| Inherited from object | |
__delattr__(...)
| |
__getattribute__(...)
| |
__hash__(...)
| |
__reduce__(...)
| |
__repr__(...)
| |
__setattr__(...)
| |
| Inherited from type | |
__new__(...)
| |
| Instance Variable Summary | |
|---|---|
| Inherited from Element | |
dict |
attributes: Dictionary of attributes associated with this Element. |
list |
children: List of child Elements and content |
str |
defaultUri: URI this Element exists within |
str |
name: Name of this Element |
Element |
parent: Reference to the parent Element, if any. |
str |
uri: URI of this Element's name |
| Class Variable Summary | |
|---|---|
hemp.utility.CallbackList |
callbacks: Callback list to be notified when response comes back |
| Inherited from Element | |
int |
_idCounter = 0 |
| Method Details |
|---|
__init__(self,
xmlstream,
type='set')
|
addCallback(self, fn, *args, **kwargs)Register a callback for notification when the IQ result is available. |
send(self, to=None)Call this method to send this IQ request via the associated XmlStream
|
| Class Variable Details |
|---|
callbacksCallback list to be notified when response comes back
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat May 15 20:08:34 2004 | http://epydoc.sf.net |