ListObservable implements an observable list. It has all the
functionalities of a normal list and in
addition informs all its observers about any change to its content.
|
__init__(self,
*args,
**kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
source code
|
|
|
_send_message_to_observers(self,
message,
*args) |
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
|
|
|
|
|
|
|
sort(self,
*args,
**kwargs)
Send the message 'dirtied' to the observers. |
source code
|
|
|
|
|
|
|
__setslice__(self,
i,
j,
elements)
Send successively the message 'removed' and the message 'inserted'
to the observers. |
source code
|
|
|
|
|
add_observer(self,
observer)
Attach an observer which will then be notified of all the changes
applied to the observable. |
source code
|
|
|
remove_observer(self,
observer)
Detach an observer which will not be notified anymore of changes
applied to the observable. |
source code
|
|
|
attribute_set(self,
origin,
key,
old_value,
new_value) |
source code
|
|
Inherited from extern.log.log.Loggable :
debug ,
doLog ,
error ,
info ,
log ,
logFunction ,
logObjectName ,
warning ,
warningFailure
Inherited from 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__ ,
__setattr__ ,
__str__
|