[Twisted-Python] pb help needed.

Itamar Shtull-Trauring itamar at itamarst.org
Mon Nov 10 09:13:04 MST 2003


On 10 Nov 2003 11:58:18 +0100
Syver Enstad <syver at inout.no> wrote:

> 
> How does one detach a perspective? Is there a callRemote method on a
> reference that does this or what? Or is it not a problem that a long
> running server calls getPerspective and unbounded number of times (I
> have two twisted servers communicating via pb).

1.1 no longer has the concept of detaching. You can track live
perspectives and choose to not allow users to login if there's still a
connection, or not as you will. Look a bit at
http://twistedmatrix.com/documents/howto/pclients, and put the
appropriate logic in your realm'ds requestAvatar.

-- 
Itamar Shtull-Trauring    http://itamarst.org/
Available for Python & Twisted consulting




More information about the Twisted-Python mailing list