AW: [Twisted-Python] Examples using PBServerFactory ?
Axel Busch
busch at transporeon.com
Sat Sep 20 13:59:51 EDT 2003
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 at twistedmatrix.com
> [mailto:twisted-python-admin at twistedmatrix.com] Im Auftrag
> von Baptiste Lepilleur
> Gesendet: Samstag, 20. September 2003 17:46
> An: twisted-python at 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 at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbSimple.zip
Type: application/x-zip-compressed
Size: 4632 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030920/4e5e97eb/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbVerySimple.zip
Type: application/x-zip-compressed
Size: 5206 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030920/4e5e97eb/attachment-0001.bin
More information about the Twisted-Python
mailing list