~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/historic/2003/pycon/deferex/deferex-forwarding.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from twisted.spread import pb
 
2
 
 
3
class LocalForwarder(flavors.Referenceable):
 
4
    def remote_foo(self):
 
5
        return str(self.local.baz())
 
6
 
 
7
class RemoteForwarder(flavors.Referenceable):
 
8
    def remote_foo(self):
 
9
        return self.remote.callRemote("baz").addCallback(str)