[Twisted-Python] Do Viewables absolutely have to be return'ed by Avatars?

Glyph glyph at twistedmatrix.com
Fri Nov 22 14:01:27 MST 2013


On Nov 22, 2013, at 12:01 PM, Daniel Sank <sank.daniel at gmail.com> wrote:

> Thanks much for the reply.
> 
>> So, this strikes me as incredibly subtle, and likely a bug
> 
> Should I file a ticket?

Absolutely.

>> One way to fix this is to manually construct a ViewPoint rather than a Viewable and pass that to the client.
> 
> If someone would be willing to supply a very simple demonstration of
> this I would appreciate it very much.

It's a very simple change to your server; your client remains the same.  Just construct a ViewPoint with the user as perspective around your viewable.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.py
Type: text/x-python-script
Size: 1232 bytes
Desc: not available
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20131122/1751845c/attachment.bin>
-------------- next part --------------

>> But I do think that we should find a way to make your use-case work, to, or at the very
>> least document the reasons why it doesn't in a comprehensible way...
> 
> I am willing to help but as of right now I only know how to use
> perspective broker; I do not know how it works under the hood.

Well, it's open source, so the hood opens right up, go ahead and pop it :-).

> I have been collecting notes on bugs in the perspective broker
> documentation. I promise to submit a documentation patch when I have a
> first draft of my project up and running.


Please feel free to submit _many_ bugs, if there are many issues :-).

-glyph


More information about the Twisted-Python mailing list