Package suds :: Package bindings :: Module multiref :: Class MultiRef
[hide private]
[frames] | no frames]

Class MultiRef

source code

Resolves and replaces multirefs.

Instance Methods [hide private]
 
__init__(self) source code
Element
process(self, body)
Process the specified soap envelope body and replace multiref node references with the contents of the referenced node.
source code
Element
update(self, node)
Update the specified node by replacing the multiref references with the contents of the referenced nodes and remove the href attribute.
source code
 
replace_references(self, node)
Replacing the multiref references with the contents of the referenced nodes and remove the href attribute.
source code
 
build_catalog(self, body)
Create the catalog of multiref nodes by id and the list of non-multiref nodes.
source code
bool
soaproot(self, node)
Get whether the specified node is a soap encoded root.
source code
Instance Variables [hide private]
dict catalog
A dictionary of multiref nodes by id.
list nodes
A list of non-multiref nodes.
Method Details [hide private]

process(self, body)

source code 

Process the specified soap envelope body and replace multiref node references with the contents of the referenced node.

Parameters:
  • body (Element) - A soap envelope body node.
Returns: Element
The processed body

update(self, node)

source code 

Update the specified node by replacing the multiref references with the contents of the referenced nodes and remove the href attribute.

Parameters:
  • node (Element) - A node to update.
Returns: Element
The updated node

replace_references(self, node)

source code 

Replacing the multiref references with the contents of the referenced nodes and remove the href attribute. Warning: since the ref is not cloned,

Parameters:
  • node (Element) - A node to update.

build_catalog(self, body)

source code 

Create the catalog of multiref nodes by id and the list of non-multiref nodes.

Parameters:
  • body (Element) - A soap envelope body node.

soaproot(self, node)

source code 

Get whether the specified node is a soap encoded root. This is determined by examining @soapenc:root='1'. The node is considered to be a root when the attribute is not specified.

Parameters:
  • node (Element) - A node to evaluate.
Returns: bool
True if a soap encoded root.