Package suds :: Package umx :: Module attrlist :: Class AttrList
[hide private]
[frames] | no frames]

Class AttrList

source code

A filtered attribute list. Items are included during iteration if they are in either the (xs) or (xml) namespaces.

Instance Methods [hide private]
 
__init__(self, attributes) source code
generator
real(self)
Get list of real attributes which exclude xs and xml attributes.
source code
int
rlen(self)
Get the number of real attributes which exclude xs and xml attributes.
source code
generator
lang(self)
Get list of filtered attributes which exclude xs.
source code
bool
skip(self, attr)
Get whether to skip (filter-out) the specified attribute.
source code
Instance Variables [hide private]
list raw
The raw attribute list.
Method Details [hide private]

__init__(self, attributes)
(Constructor)

source code 
Parameters:
  • attributes (list) - A list of attributes

real(self)

source code 

Get list of real attributes which exclude xs and xml attributes.

Returns: generator
A list of real attributes.

rlen(self)

source code 

Get the number of real attributes which exclude xs and xml attributes.

Returns: int
A count of real attributes.

lang(self)

source code 

Get list of filtered attributes which exclude xs.

Returns: generator
A list of filtered attributes.

skip(self, attr)

source code 

Get whether to skip (filter-out) the specified attribute.

Parameters:
  • attr (Attribute) - An attribute.
Returns: bool
True if should be skipped.