Relevant XEPs: 0004, 0068, 0122. Can be used in disco, pub-sub and many
other applications.
|
__init__(self,
typ=None,
data=[ ] ,
title=None,
node=None)
Create new dataform of type 'typ'. 'data' is the list of DataField
instances that this dataform contains, 'title' - the title string. You
can specify the 'node' argument as the other node to be used as base for
constructing this dataform |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setField(self,
name)
Create if nessessary or get the existing datafield object with name
'name' and return it |
source code
|
|
|
asDict(self)
Represent dataform as simple dictionary mapping of datafield names to
their values |
source code
|
|
|
|
|
__setitem__(self,
name,
val)
Simple dictionary interface for setting datafields values by their names |
source code
|
|
Inherited from simplexml.Node :
__contains__ ,
__delitem__ ,
__getattr__ ,
__str__ ,
addChild ,
addData ,
clearData ,
delAttr ,
delChild ,
getAttr ,
getAttrs ,
getChildren ,
getData ,
getName ,
getNamespace ,
getParent ,
getPayload ,
getTag ,
getTagAttr ,
getTagData ,
getTags ,
has_attr ,
iterTags ,
lookup_nsp ,
setAttr ,
setData ,
setName ,
setNamespace ,
setParent ,
setPayload ,
setTag ,
setTagAttr ,
setTagData
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|