Re: [Twisted-Python] Knowing whether spawnProcess did anything useful

2010-07-13 Thread exarkun
On 13 Jul, 09:18 pm, domi...@baudvine.net wrote: >Hiya, > >I'm looking for a way to know whether spawnProcess() did anything >useful. That is, whether anything has actually been executed. In my >specific case the executables are all persistent (pluggable modules, >they stick around for a while) so

Re: [Twisted-Python] What is the minimum effort solution to make inetd-managed twisted-based application?

2010-07-13 Thread exarkun
On 13 Jul, 04:52 pm, twisted-...@udmvt.ru wrote: >On Tue, Jul 13, 2010 at 02:37:08PM -, exar...@twistedmatrix.com >wrote: >>On 12:57 pm, twisted-...@udmvt.ru wrote: >> >What is the minimal effort method for building protocol instance >>(maybe >> >out of >> >already implemented protocol factor

Re: [Twisted-Python] SMTP Client Blocking Connects

2010-07-13 Thread Jason J. W. Williams
Hey Glyph, Thanks for responding so fast. Lemme code up a simple test that replicates what the code is doing and see if I can replicate it that way. -J On Mon, Jul 12, 2010 at 6:53 PM, Glyph Lefkowitz wrote: > > On Jul 12, 2010, at 8:51 PM, Jason J. W. Williams wrote: > > Are TCP connects in Tw

[Twisted-Python] Knowing whether spawnProcess did anything useful

2010-07-13 Thread Dominic van Berkel
Hiya, I'm looking for a way to know whether spawnProcess() did anything useful. That is, whether anything has actually been executed. In my specific case the executables are all persistent (pluggable modules, they stick around for a while) so based on the following snippet I thought I could check

Re: [Twisted-Python] What is the minimum effort solution to make inetd-managed twisted-based application?

2010-07-13 Thread Alexey
On Tue, Jul 13, 2010 at 02:37:08PM -, exar...@twistedmatrix.com wrote: > On 12:57 pm, twisted-...@udmvt.ru wrote: > >What is the minimal effort method for building protocol instance (maybe > >out of > >already implemented protocol factory) using a transport, that uses > >parent-inherited socke

Re: [Twisted-Python] What is the minimum effort solution to make inetd-managed twisted-based application?

2010-07-13 Thread exarkun
On 12:57 pm, twisted-...@udmvt.ru wrote: >What is the minimal effort method for building protocol instance (maybe >out of >already implemented protocol factory) using a transport, that uses >parent-inherited sockets (or any other already connected sockets) ? >I haven't yet found any single-line so

[Twisted-Python] What is the minimum effort solution to make inetd-managed twisted-based application?

2010-07-13 Thread twisted-web
What is the minimal effort method for building protocol instance (maybe out of already implemented protocol factory) using a transport, that uses parent-inherited sockets (or any other already connected sockets) ? I haven't yet found any single-line solution for that. For example, how to start an

Re: [Twisted-Python] Email problem

2010-07-13 Thread Tim Allen
On 07/13/2010 07:32 PM, Alvin Wang wrote: > # that's all falks > writer.lastpart() > m = message.getvalue() > message.close() Here, you set "m" to be a string containing the message contents. > factory = ESMTPSenderFactory(sender, > senderpw, >

[Twisted-Python] Email problem

2010-07-13 Thread Alvin Wang
Problem send email through gmail with an attachment Any help is appreciated Thanks Alvin """ Does not work """ from twisted.internet.ssl import ClientContextFactory from twisted.internet.defer import Deferred from twisted.mail.smtp import ESMTPSenderFactory from twisted.internet import reactor