Package elisa :: Package plugins :: Package base :: Package models :: Module list_model :: Class ListModel
[hide private]
[frames] | no frames]

Class ListModel

source code


Modelize a list data structure

DOCME more.

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
 
append(self, element)
Send the message 'inserted' to the observers.
source code
 
extend(self, elements)
Send the message 'inserted' to the observers.
source code
 
insert(self, position, element)
Send the message 'inserted' to the observers.
source code
 
pop(self, position=-1)
Send the message 'removed' to the observers.
source code
 
remove(self, element)
Send the message 'removed' to the observers.
source code
 
__setitem__(self, key, value)
Send the message 'modified' to the observers.
source code
 
__delitem__(self, key)
Send the message 'removed' to the observers.
source code
 
__setslice__(self, i, j, sequence)
Send successively the message 'removed' and the message 'inserted' to the observers.
source code
 
__delslice__(self, i, j)
Send the message 'removed' to the observers.
source code

Inherited from core.component.Component: clean, initialize, load_config, save_config

Inherited from core.observers.observable.Observable: __setattr__, add_observer, remove_observer

Inherited from core.observers.list.ListObservable: __eq__, __hash__, __iadd__, __imul__, __repr__, attribute_set, reverse, sort

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from core.utils.threadsafe_list.ThreadsafeList: __add__, __contains__, __copy__, __deepcopy__, __getitem__, __getslice__, __iter__, __len__, __mul__, count, index

Inherited from list: __ge__, __getattribute__, __gt__, __le__, __lt__, __ne__, __new__, __reversed__, __rmul__

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
string name = 'list_model'
Component's name

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from base_components.model.Model: activate_action, activity, loading, parent

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: base_components.model.Model.__init__

append(self, element)

source code 
Send the message 'inserted' to the observers.
Overrides: core.observers.list.ListObservable.append
(inherited documentation)

extend(self, elements)

source code 
Send the message 'inserted' to the observers.
Overrides: core.observers.list.ListObservable.extend
(inherited documentation)

insert(self, position, element)

source code 
Send the message 'inserted' to the observers.
Overrides: core.observers.list.ListObservable.insert
(inherited documentation)

pop(self, position=-1)

source code 
Send the message 'removed' to the observers.
Overrides: core.observers.list.ListObservable.pop
(inherited documentation)

remove(self, element)

source code 
Send the message 'removed' to the observers.
Overrides: core.observers.list.ListObservable.remove
(inherited documentation)

__setitem__(self, key, value)
(Index assignment operator)

source code 
Send the message 'modified' to the observers.
Overrides: core.observers.list.ListObservable.__setitem__
(inherited documentation)

__delitem__(self, key)
(Index deletion operator)

source code 
Send the message 'removed' to the observers.
Overrides: core.observers.list.ListObservable.__delitem__
(inherited documentation)

__setslice__(self, i, j, sequence)
(Slice assignment operator)

source code 
Send successively the message 'removed' and the message 'inserted' to the observers.
Overrides: core.observers.list.ListObservable.__setslice__
(inherited documentation)

__delslice__(self, i, j)
(Slice deletion operator)

source code 
Send the message 'removed' to the observers.
Overrides: core.observers.list.ListObservable.__delslice__
(inherited documentation)