Package foolscap :: Module copyable :: Class ICopyable
[hide private]
[frames] | no frames]

Class ICopyable

source code

zope.interface.Interface --+
                           |
                          ICopyable

I represent an object which is passed-by-value across PB connections.

Instance Methods [hide private]
 
getTypeToCopy()
Return a string which names the class.
source code
 
getStateToCopy()
Return a state dictionary (with plain-string keys) which will be serialized and sent to the remote end.
source code
Class Variables [hide private]
  _InterfaceClass__attrs = {'getStateToCopy': <zope.interface.in...
  __bases__ = (<InterfaceClass zope.interface.Interface>)
  __identifier__ = 'foolscap.copyable.ICopyable'
  __iro__ = (<InterfaceClass foolscap.copyable.ICopyable>, <Inte...
  __name__ = 'ICopyable'
  __sro__ = (<InterfaceClass foolscap.copyable.ICopyable>, <Inte...
  _implied = {<InterfaceClass foolscap.copyable.ICopyable>: (), ...
  dependents = <WeakKeyDictionary at 142704140>

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

Method Details [hide private]

getTypeToCopy()

source code 

Return a string which names the class. This string must match the one that gets registered at the receiving end. This is typically a URL of some sort, in a namespace which you control.

getStateToCopy()

source code 

Return a state dictionary (with plain-string keys) which will be serialized and sent to the remote end. This state object will be given to the receiving object's setCopyableState method.


Class Variable Details [hide private]

_InterfaceClass__attrs

Value:
{'getStateToCopy': <zope.interface.interface.Method object at 0x88177e\
c>,
 'getTypeToCopy': <zope.interface.interface.Method object at 0x8817dcc\
>}

__iro__

Value:
(<InterfaceClass foolscap.copyable.ICopyable>,
 <InterfaceClass zope.interface.Interface>)

__sro__

Value:
(<InterfaceClass foolscap.copyable.ICopyable>,
 <InterfaceClass zope.interface.Interface>)

_implied

Value:
{<InterfaceClass foolscap.copyable.ICopyable>: (),
 <InterfaceClass zope.interface.Interface>: ()}