[Twisted-Python] Clean pb solution for two-way object sync?
Phil Mayers
p.mayers at imperial.ac.uk
Fri Sep 27 01:46:06 MDT 2013
On 09/27/2013 05:48 AM, Daniel Sank wrote:
> Upon re-reading the Cacheable docs I still don't understand how to use
> it.
Have you seen this:
http://twistedmatrix.com/documents/current/core/howto/pb-copyable.html#auto9
Essentially, you move all attribute access to accessor methods and do
callRemote to propagate the changes out to observers; new observers are
passed to you in getStateToCacheAndObserveFor.
Observers respond to observe_xxx methods, and implement a
setCopyableState method.
Then you map the cacheable and observer with pb.setUnjellyableForClass
More information about the Twisted-Python
mailing list