Class MixedList
UserList
--+
|
TypedList
--+
|
MixedList
Multiple Type storage List
This kind of list can store every XMLObject type declared
in its parent ChoiceNode
. Plus Strings.
Example:
class Foo(XMLObject):
pass
class Bar(XMLObject):
mix = ChoiceNode(['#PCDATA','Foo'], noLimit=True)
In mix node, a backend MixedList will be created. It will
ensure items stored are either strings ('#PCDATA') or Foo
instances.
Method Summary |
|
checkItem(self,
it)
|
|
walkOnXMLObject(self,
typeList,
registry,
callback,
*args,
**kw)
|
Inherited from TypedList |
|
__init__ (self,
xmlList,
data)
|
|
__add__ (self,
other)
|
|
__getslice__ (self,
i,
j)
|
|
__iadd__ (self,
other)
|
|
__radd__ (self,
other)
|
|
append (self,
item)
|
|
checkList (self,
other)
|
|
extend (self,
other)
|
|
insert (self,
index,
item)
|
Inherited from UserList |
|
__cmp__ (self,
other)
|
|
__contains__ (self,
item)
|
|
__delitem__ (self,
i)
|
|
__delslice__ (self,
i,
j)
|
|
__eq__ (self,
other)
|
|
__ge__ (self,
other)
|
|
__getitem__ (self,
i)
|
|
__gt__ (self,
other)
|
|
__imul__ (self,
n)
|
|
__le__ (self,
other)
|
|
__len__ (self)
|
|
__lt__ (self,
other)
|
|
__mul__ (self,
n)
|
|
__ne__ (self,
other)
|
|
__repr__ (self)
|
|
__rmul__ (self,
n)
|
|
__setitem__ (self,
i,
item)
|
|
__setslice__ (self,
i,
j,
other)
|
|
count (self,
item)
|
|
index (self,
item,
*args)
|
|
pop (self,
i)
|
|
remove (self,
item)
|
|
reverse (self)
|
|
sort (self,
*args)
|