1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
:LastChangedDate: $LastChangedDate$
:LastChangedRevision: $LastChangedRevision$
:LastChangedBy: $LastChangedBy$
The Evolution of Finger: Twisted client support using Perspective Broker
========================================================================
Introduction
------------
This is the seventh part of the Twisted tutorial :doc:`Twisted from Scratch, or The Evolution of Finger <index>` .
In this part, we add a Perspective Broker service to the finger application
so that Twisted clients can access the finger server. Perspective Broker is
introduced in depth in its own :ref:`section <core-howto-index-pb>` of the
core howto index.
Use Perspective Broker
----------------------
We add support for perspective broker, Twisted's native remote object
protocol. Now, Twisted clients will not have to go through XML-RPCish
contortions to get information about users.
:download:`finger21.tac <listings/finger/finger21.tac>`
.. literalinclude:: listings/finger/finger21.tac
A simple client to test the perspective broker finger:
:download:`fingerPBclient.py <listings/finger/fingerPBclient.py>`
.. literalinclude:: listings/finger/fingerPBclient.py
|