[Twisted-Python] Twisted PB and Zope
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, is there a way to use Zope as a client to Twisted PB ? Background is that I have a nicely working application using Twisted. The GUI client is wxPython based and talks to the server part using PB. Now I'd like to add a webinterface that would ideally use PB to to talk to my application server part and retrieve some of the information. Is that possible at all? Any pointers? Thanks UC - -- Open Source Solutions 4U, LLC 2570 Fleetwood Drive Phone: +1 650 872 2425 San Bruno, CA 94066 Cell: +1 650 302 2405 United States Fax: +1 650 872 2417 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFB8TJRjqGXBvRToM4RApwEAKCpLF12s56kJWU8SJ/PX3TaFBOS3QCfROth uCwYXHV/JOEwl/kKNnxHZjU= =1FBI -----END PGP SIGNATURE-----
PB + zope is messy, you would need to run a reactor in a zope thread. A zope uri is a valid xml-rpc object whos methods are callable using xml-rpc + basic auth. twisteds xml-rpc client support lacks basic auth even though the underlying xml-rpc library supports it. We patched it up at work but our patch was pretty hacky and not implemented at the layer that it should be to merge into twisted. I guess you could: a) only invoke methods without security properties set on them in zope b) fix up twisteds xml-rpc client to do basic auth well c) ask me for the patch we use and see if its helpful (I doubt it) I like the sound of b :) -tjs
participants (2)
-
Timothy Stebbing
-
Uwe C. Schroeder