Package flumotion :: Package twisted :: Module flavors :: Class IStateListener
[hide private]

Class IStateListener

source code

zope.interface.Interface --+
                           |
                          IStateListener

I am an interface for objects that want to listen to changes on cached states.

Instance Methods [hide private]
 
stateSet(self, object, key, value) source code
 
stateAppend(self, object, key, value) source code
 
stateRemove(self, object, key, value) source code
Class Variables [hide private]
  _InterfaceClass__attrs = {'stateAppend': <zope.interface.inter...
  __bases__ = (<InterfaceClass zope.interface.Interface>)
  __identifier__ = 'flumotion.twisted.flavors.IStateListener'
  __iro__ = (<InterfaceClass flumotion.twisted.flavors.IStateLis...
  __name__ = 'IStateListener'
  __sro__ = (<InterfaceClass flumotion.twisted.flavors.IStateLis...
  _implied = {<InterfaceClass flumotion.twisted.flavors.IStateLi...
  dependents = <WeakKeyDictionary at 141174476>

Inherited from zope.interface.Interface (private): _Element__tagged_values

Method Details [hide private]

stateSet(self, object, key, value)

source code 
Parameters:
  • object (StateRemoteCache) - the state object having changed
  • key (string) - the key being set
  • value - the value the key is being set to

    The given key on the given object has been set to the given value.

stateAppend(self, object, key, value)

source code 
Parameters:
  • object (StateRemoteCache) - the state object having changed
  • key (string) - the key being appended to
  • value - the value being appended to the list given by key

    The given value has been added to the list given by the key.

stateRemove(self, object, key, value)

source code 
Parameters:
  • object (StateRemoteCache) - the state object having changed
  • key (string) - the key being removed from
  • value - the value being removed from the list given by key

    The given value has been removed from the list given by the key.


Class Variable Details [hide private]

_InterfaceClass__attrs

Value:
{'stateAppend': <zope.interface.interface.Method object at 0x86a26ec>,
 'stateRemove': <zope.interface.interface.Method object at 0x86a27cc>,
 'stateSet': <zope.interface.interface.Method object at 0x86a27ac>}

__iro__

Value:
(<InterfaceClass flumotion.twisted.flavors.IStateListener>,
 <InterfaceClass zope.interface.Interface>)

__sro__

Value:
(<InterfaceClass flumotion.twisted.flavors.IStateListener>,
 <InterfaceClass zope.interface.Interface>)

_implied

Value:
{<InterfaceClass flumotion.twisted.flavors.IStateListener>: (),
 <InterfaceClass zope.interface.Interface>: ()}