[Twisted-Python] Folding the server into the client?
ddwiggins at advpubtech.com
Thu Sep 15 13:49:46 EDT 2011
Itamar, thanks for the reply.
> You could create a Python API that looks close enough to the code using
> xmlrpclib, but just uses direct Python function calls. Depending on your
> code this may mean you don't actually need the reactor. If you do need a
> reactor, you could still do it without actually doing xmlrpc queries to
> yourself. If you run the reactor in a different thread,
> blockingCallFromThread lets you "wait" on a Deferred from another
> non-reactor thread, in your case the GUI thread (might block your GUI
Hmm, not sure I understand. Are you saying that deferreds will "work"
without having a reactor? (I'm using inlineCallbacks on all the
One thing I should have said, but didn't, is that the methods in the
subhandler make DB calls using adbapi, so use deferreds pretty heavily.
I'm willing to block the GUI, at least for now.
Advanced Publishing Technology
More information about the Twisted-Python