<p dir="ltr">I'm </p>
<div class="gmail_quote">On Nov 21, 2013 7:56 AM, "Daniel Sank" <<a href="mailto:sank.daniel@gmail.com">sank.daniel@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>From some experimentation I find that the only way to make a Viewable<br>
get a meaningful perspective argument when executing view_* methods is<br>
to make sure that the references to that Viewable are given to clients<br>
as return values from perspective_* methods called on a pb.Avatar.<br>
<br>
In particular, if the Avatar gives a client a reference to a Viewable<br>
by passing it as an argument to a remote_* method on the client,<br>
subsequent invocations of view_* methods by the client result in<br>
perspective argument in view_* methods being None.<br>
<br>
I have attached a complete working example of a client and server that<br>
succinctly illustrates this issue.<br>
<br>
Question: Is there a way to distribute un-asked for references to<br>
Viewables that properly get the perspective argument in their view_*<br>
methods?<br>
<br>
Sincerely,<br>
Daniel Sank<br>
<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div>