Package advene :: Package model :: Package core :: Module element :: Class ElementCollectionWrapper
[hide private]
[frames] | no frames]

Class ElementCollectionWrapper

source code

       object --+    
                |    
ElementCollection --+
                    |
                   ElementCollectionWrapper

Wrap an ElementCollection around an existing list.

Instance Methods [hide private]
 
__init__(self, l, p)
Initialise the element collection.
source code
 
__len__(self)
Default (and inefficient) implementation relying on __iter__.
source code
 
__iter__(self)
Default implementation relying on __len__ and __getitem__.
source code
 
__getitem__(self, i)
Default implementation relying on __iter__.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

    Inherited from ElementCollection
 
__eq__(self, other) source code
 
__repr__(self)
repr(x)
source code
 
filter(collection, **kw)
Use underlying iter method with the given keywords to make a filtered version of that collection.
source code
 
get(self, key, default=None) source code
 
keys(self) source code
Class Variables [hide private]
    Inherited from ElementCollection
  _allow_filter = True
Properties [hide private]

Inherited from object: __class__

    Inherited from ElementCollection
  _tales_first
  _tales_rest
  _tales_size
Return the size of the group.
Method Details [hide private]

__init__(self, l, p)
(Constructor)

source code 

Initialise the element collection.

`owner_package`is used only in the `get` method, to provide a context to the ID-ref.

Overrides: object.__init__
(inherited documentation)

__len__(self)
(Length operator)

source code 

Default (and inefficient) implementation relying on __iter__.

Overrides: ElementCollection.__len__
(inherited documentation)

__iter__(self)

source code 

Default implementation relying on __len__ and __getitem__.

Overrides: ElementCollection.__iter__
(inherited documentation)

__getitem__(self, i)
(Indexing operator)

source code 

Default implementation relying on __iter__.

Overrides: ElementCollection.__getitem__
(inherited documentation)