1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>twisted.spread.pb.IPerspective</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
<!-- =========== START OF NAVBAR =========== -->
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
15
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
16
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
17
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
18
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
19
<th class="navbar" align="right" width="100%">
20
<table border="0" cellpadding="0" cellspacing="0">
21
<tr><th class="navbar" align="center">
23
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
24
</p></th></tr></table>
28
<table width="100%" cellpadding="0" cellspacing="0">
31
<font size="-1"><b class="breadcrumbs">
32
<a href="twisted.html">Package twisted</a> ::
33
<a href="twisted.spread.html">Package spread</a> ::
34
<a href="twisted.spread.pb.html">Module pb</a> ::
35
Class IPerspective
38
<td><table cellpadding="0" cellspacing="0">
39
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="twisted.spread.pb.IPerspective.html" target="_top">no frames</a>]</font></td></tr>
43
<!-- =========== START OF CLASS DESCRIPTION =========== -->
44
<h2 class="class">Class IPerspective</h2>
46
<pre class="base-tree">
47
<a href="twisted.python.components.Interface.html"><code>Interface</code></a> --+
54
<p>per*spec*tive, n. : The relationship of aspects of a subject to each
55
other and to a whole: 'a perspective of history'; 'a need to view the
56
problem in the proper perspective'.</p>
57
<p>This is a Perspective Broker-specific wrapper for an avatar. That is
58
to say, a PB-published view on to the business logic for the system's
59
concept of a 'user'.</p>
60
The concept of attached/detached is no longer implemented by the
61
framework. The realm is expected to implement such semantics if
66
<!-- =========== START OF METHOD SUMMARY =========== -->
67
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
68
<tr bgcolor="#70b0f0" class="summary">
69
<th colspan="2">Method Summary</th></tr>
70
<tr><td align="right" valign="top" width="15%"><font size="-1"> A jelly list.
72
<td><code><span class="summary-sig"><a href="twisted.spread.pb.IPerspective.html#perspectiveMessageReceived" class="summary-sig-name"><code>perspectiveMessageReceived</code></a>(<span class=summary-sig-arg>self</span>,
73
<span class=summary-sig-arg>broker</span>,
74
<span class=summary-sig-arg>message</span>,
75
<span class=summary-sig-arg>args</span>,
76
<span class=summary-sig-arg>kwargs</span>)</span></code>
78
This method is called when a network message is received.</td></tr>
82
<!-- =========== START OF METHOD DETAILS =========== -->
83
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
84
<tr bgcolor="#70b0f0" class="details">
85
<th colspan="2">Method Details</th></tr>
88
<a name="perspectiveMessageReceived"></a>
89
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
90
<h3><span class="sig"><span class="sig-name">perspectiveMessageReceived</span>(<span class=sig-arg>self</span>,
91
<span class=sig-arg>broker</span>,
92
<span class=sig-arg>message</span>,
93
<span class=sig-arg>args</span>,
94
<span class=sig-arg>kwargs</span>)</span>
96
This method is called when a network message is received.
98
<dl><dt><b>Parameters:</b></dt>
99
<dd><code><b>broker</b></code> -
100
The Perspective Broker.
101
<dd><code><b>message</b></code> -
102
The name of the method called by the other end.
103
<br /><i>
105
<dd><code><b>args</b></code> -
106
The arguments that were passed by the other end. It is
107
recommend that you use the `unserialize' method of the broker to
109
<br /><i>
110
(type=list in jelly format)</i>
111
<dd><code><b>kwargs</b></code> -
112
The keyword arguments that were passed by the other end. It is
113
recommended that you use the `unserialize' method of the broker
115
<br /><i>
116
(type=dict in jelly format)</i>
119
<dl><dt><b>Returns:</b></dt>
121
It is recommended that you use the `serialize' method of the
122
broker on whatever object you need to return to generate the
124
<br /><i>
125
(type=A jelly list.)</i>
133
<!-- =========== START OF NAVBAR =========== -->
134
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
136
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
137
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
138
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
139
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
140
<th class="navbar" align="right" width="100%">
141
<table border="0" cellpadding="0" cellspacing="0">
142
<tr><th class="navbar" align="center">
144
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
145
</p></th></tr></table>
150
<table border="0" cellpadding="0" cellspacing="0" width="100%">
152
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:04 2004</font></td>
153
<td align="right"><a href="http://epydoc.sourceforge.net"
154
><font size="-2">http://epydoc.sf.net</font></a></td>