Home | Trees | Index | Help |
---|
Package xmpp :: Module protocol :: Class DataForm |
|
Node
--+
|
DataForm
Method Summary | |
---|---|
Create new dataform of type 'typ'. | |
Simple dictionary interface for getting datafields values by their names. | |
Simple dictionary interface for setting datafields values by their names. | |
Add one more instruction to the dataform. | |
Represent dataform as simple dictionary mapping of datafield names to their values. | |
Return the datafield object with name 'name' (if exists). | |
Return the instructions of dataform. | |
Return the title of dataform. | |
Return the type of dataform. | |
Create if nessessary or get the existing datafield object with name 'name' and return it. | |
Set the instructions of dataform. | |
Set the title of dataform. | |
Set the type of dataform. | |
Inherited from Node | |
Deletes node's attribute "item". | |
| |
If "node" argument is provided, adds it as child node. | |
Adds some CDATA to node. | |
Removes all CDATA from the node. | |
Deletes an attribute "key" | |
Deletes the "node" from the node's childs list, if "node" is an instance. | |
Returns value of specified attribute. | |
Returns all node's attributes as dictionary. | |
Returns all node's child nodes as list. | |
Returns all node CDATA as string (concatenated). | |
Returns the name of node | |
Returns the namespace of node | |
Returns the parent of node (if present). | |
Return the payload of node i.e. | |
Filters all child nodes using specified arguments as filter. | |
Returns attribute value of the child with specified name (or None if no such attribute). | |
Returns cocatenated CDATA of the child with specified name. | |
Filters all child nodes using specified arguments as filter. | |
Checks if node have attribute "key". | |
Sets attribute "key" with the value "val". | |
Sets node's CDATA to provided string. | |
Changes the node name. | |
Changes the node namespace. | |
Sets node's parent to "node". | |
Sets node payload according to the list specified. | |
Same as getTag but if the node with specified namespace/attributes not found, creates such node and returns it. | |
Creates new node (if not already present) with name "tag" and sets it's attribute "attr" to value "val". | |
Creates new node (if not already present) with name "tag" and (optionally) attributes "attrs" and sets it's CDATA to string "val". |
Class Variable Summary | |
---|---|
Inherited from Node | |
int |
FORCE_NODE_RECREATION = 0 |
Method Details |
---|
__init__(self,
typ=None,
data=[],
title=None,
node=None)
|
__getitem__(self,
name)
Simple dictionary interface for getting datafields values by their
names.
|
__setitem__(self,
name,
val)
Simple dictionary interface for setting datafields values by their
names.
|
addInstructions(self, text)Add one more instruction to the dataform. |
asDict(self)Represent dataform as simple dictionary mapping of datafield names to their values. |
getField(self, name)Return the datafield object with name 'name' (if exists). |
getInstructions(self)Return the instructions of dataform. |
getTitle(self)Return the title of dataform. |
getType(self)Return the type of dataform. |
setField(self, name)Create if nessessary or get the existing datafield object with name 'name' and return it. |
setInstructions(self, text)Set the instructions of dataform. |
setTitle(self, text)Set the title of dataform. |
setType(self, typ)Set the type of dataform. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Dec 26 09:52:57 2004 | http://epydoc.sf.net |