[Twisted-Python] Examples using PBServerFactory ?

Is there some examples of using the PBServerFactory ? When running examples from Perspective Broker how to (http://twistedmatrix.com/documents/howto/pb-usage#auto2) I get a deprecated warning concerning pb.BrokerFactory usage. Since I'm new to twisted, I'd rather get thing right from the start Thanks, Baptiste.

On Sat, 20 Sep 2003 17:45:46 +0200 "Baptiste Lepilleur" <gaiacrtn@free.fr> wrote:
Is there some examples of using the PBServerFactory ? When running examples from Perspective Broker how to (http://twistedmatrix.com/documents/howto/pb-usage#auto2) I get a deprecated warning concerning pb.BrokerFactory usage.
sandbox/jml/pb-go*.py in the tarball and doc/examples/pbecho*.py in CVS. -- Itamar Shtull-Trauring http://itamarst.org/ Available for Python & Twisted consulting

Thanks, this works like a charm. Baptiste. ----- Original Message ----- From: "Itamar Shtull-Trauring" <itamar@itamarst.org> To: <twisted-python@twistedmatrix.com> Sent: Saturday, September 20, 2003 6:20 PM Subject: Re: [Twisted-Python] Examples using PBServerFactory ?
On Sat, 20 Sep 2003 17:45:46 +0200 "Baptiste Lepilleur" <gaiacrtn@free.fr> wrote:
Is there some examples of using the PBServerFactory ? When running examples from Perspective Broker how to (http://twistedmatrix.com/documents/howto/pb-usage#auto2) I get a deprecated warning concerning pb.BrokerFactory usage.
sandbox/jml/pb-go*.py in the tarball and doc/examples/pbecho*.py in CVS.
-- Itamar Shtull-Trauring http://itamarst.org/ Available for Python & Twisted consulting

hi Baptiste, I'm also new to python and twisted, but maybe I have something that will help you getting started. Attached are two examples, both use twisted and wxPython (because I need a GUI for the client.) pbVerySimple: basically what you will find in the sandbox, but with some comments from Glyph which I found in the mailing list regarding "Realm" and "Avatar" and the like. pbSimple: here I felt more adventurous. Several Clients will have the same perspective, which will give them a view, which is a wrapper for a collection of server-objects. Clients subscribe for a list of those objects (called "Transports", because I'm working in eLogistics) and when one client changes a Transport the others will get an update. Take care, propably I did lots of stuff wrong there, and of course the security model is not for productive use. ;) Maybe the more experienced guys on this list will help us with advice. When you start client.py you have to give it a user name ("bob" or "nici") as an argument. My setting: winXP, python2.3, wxPython2.4.1.2, Twisted-1.0.7rc1 Regards, Axel
-----Ursprüngliche Nachricht----- Von: twisted-python-admin@twistedmatrix.com [mailto:twisted-python-admin@twistedmatrix.com] Im Auftrag von Baptiste Lepilleur Gesendet: Samstag, 20. September 2003 17:46 An: twisted-python@twistedmatrix.com Betreff: [Twisted-Python] Examples using PBServerFactory ?
Is there some examples of using the PBServerFactory ? When running examples from Perspective Broker how to (http://twistedmatrix.com/documents/howto/pb-usage#auto2) I get a deprecated warning concerning pb.BrokerFactory usage.
Since I'm new to twisted, I'd rather get thing right from the start
Thanks, Baptiste.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Axel Busch wrote:
Attached are two examples, both use twisted and wxPython (because I need a GUI for the client.)
Awesome, Axel! Both examples work perfectly. (But note that the names of the zip files are reversed.) These will be quite useful to us, since we are also developing a wxPython client that interacts with a Twisted server app. Thanks! - Steve.

Hi Steve,
Awesome, Axel! Both examples work perfectly. Thanks. *blush*. But better wait for the comments of Itamar etc. I'm not sure if I got their Ideas of how to use all this perspective and view stuff right.
(But note that the names of the zip files are reversed.) Ups, hehe. *sorry*
These will be quite useful to us, since we are also developing a wxPython client that interacts with a Twisted server app.
Thanks!
You're welcome. I'm currently still playing around, but looks like we will use python/wx/twisted for our next projects (currently all c++/mfc/soap). Now I'm experimenting with a persistent storage for the server-objects, and when that is settled satisfactorily we will switch to python/twisted. Things look really great, I fell in love with python and twisted ;). It's just _so_ much more fun. so long, Axel

Thanks, this will prove useful. Though, I won't be using wxPython for the interface (I'll probably plug-in a web server). But it's interesting to see how it's done. Baptiste. ----- Original Message ----- From: "Axel Busch" <busch@transporeon.com> To: <twisted-python@twistedmatrix.com> Cc: <gaiacrtn@free.fr> Sent: Saturday, September 20, 2003 7:59 PM Subject: AW: [Twisted-Python] Examples using PBServerFactory ? hi Baptiste, I'm also new to python and twisted, but maybe I have something that will help you getting started. Attached are two examples, both use twisted and wxPython (because I need a GUI for the client.) pbVerySimple: basically what you will find in the sandbox, but with some comments from Glyph which I found in the mailing list regarding "Realm" and "Avatar" and the like. pbSimple: here I felt more adventurous. Several Clients will have the same perspective, which will give them a view, which is a wrapper for a collection of server-objects. Clients subscribe for a list of those objects (called "Transports", because I'm working in eLogistics) and when one client changes a Transport the others will get an update. Take care, propably I did lots of stuff wrong there, and of course the security model is not for productive use. ;) Maybe the more experienced guys on this list will help us with advice. When you start client.py you have to give it a user name ("bob" or "nici") as an argument. My setting: winXP, python2.3, wxPython2.4.1.2, Twisted-1.0.7rc1 Regards, Axel
-----Ursprüngliche Nachricht----- Von: twisted-python-admin@twistedmatrix.com [mailto:twisted-python-admin@twistedmatrix.com] Im Auftrag von Baptiste Lepilleur Gesendet: Samstag, 20. September 2003 17:46 An: twisted-python@twistedmatrix.com Betreff: [Twisted-Python] Examples using PBServerFactory ?
Is there some examples of using the PBServerFactory ? When running examples from Perspective Broker how to (http://twistedmatrix.com/documents/howto/pb-usage#auto2) I get a deprecated warning concerning pb.BrokerFactory usage.
Since I'm new to twisted, I'd rather get thing right from the start
Thanks, Baptiste.
participants (4)
-
Axel Busch
-
Baptiste Lepilleur
-
Itamar Shtull-Trauring
-
Stephen C. Waterbury