Re: [Twisted-Python] Sending domish.Element results to Unpersistable

2009-12-28 Thread twisted-web
On Mon, Dec 28, 2009 at 10:14:49AM +0800, Enrique Samson Jr. wrote: > Hi, > > I'm using PB to to send copies of domish.Element instances to another > application. I just don't want to parse XML again and thought it would > be better to send Element copies and save parsing on the other end. But > r

Re: [Twisted-Python] understanding deferreds

2010-01-29 Thread twisted-web
On Thu, Jan 28, 2010 at 05:46:08PM -0500, Terry Jones wrote: > > "Michael" == Michael P Soulier writes: > > Michael> I'm a bit confused as to the "visual explanation". It seems like > Michael> if you have a single callback and errback, that if the errback > Michael> wants to swallow the error

[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] What is the minimum effort solution to make inetd-managed twisted-based application?

2010-07-28 Thread twisted-web
After all, I'm posting my angry code. The first file is a module with some classes, that can be used to accomplish my task. The second file is a UNIX program, it uses socketpair() and then fork() to start both client and server, they talk each other via PB protocol. Running that produces some noise

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread twisted-web
On Tue, Aug 17, 2010 at 01:35:41PM +0200, Zoran Bosnjak wrote: > I am running twisted application from /etc/init/myapp.conf by exec > statement like this: > exec /usr/bin/twistd --uid= --gid= --logfile=/var/log/dir/file > > The problem is when log file is first created under /var/log/dir (dir is >

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread twisted-web
On Tue, Aug 17, 2010 at 05:40:34PM -, exar...@twistedmatrix.com wrote: > On 11:35 am, zoran.bosn...@sloveniacontrol.si wrote: > >I am running twisted application from /etc/init/myapp.conf by exec > >statement like this: > >exec /usr/bin/twistd --uid= --gid= --logfile=/var/log/dir/file > > > >Th

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread twisted-web
On Wed, Aug 18, 2010 at 04:35:29PM +0100, Phil Mayers wrote: > On 18/08/10 10:25, twisted-...@udmvt.ru wrote: > > > I think --uid option is too dangerous. > > sudo or su or setuidgid (from http://cr.yp.to/daemontools.html) is more > > appropriate for changing uids. > > In all cases? I think not.

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-19 Thread twisted-web
On Wed, Aug 18, 2010 at 04:01:52PM -, exar...@twistedmatrix.com wrote: > On 03:35 pm, p.may...@imperial.ac.uk wrote: > >On 18/08/10 10:25, twisted-...@udmvt.ru wrote: > >>I think --uid option is too dangerous. > >>sudo or su or setuidgid (from http://cr.yp.to/daemontools.html) is > >>more > >>

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-19 Thread twisted-web
On Thu, Aug 19, 2010 at 07:22:37AM +0100, Phil Mayers wrote: > On 08/18/2010 05:01 PM, exar...@twistedmatrix.com wrote: > I wonder whether one could do something with SELinux today? (As an > aside, one of the reasons to *not* use twistd is you can't separately > label a .tac file - if of course y

Re: [Twisted-Python] Don't Thread On Me t-shirt proposal

2010-10-21 Thread twisted-web
On Thu, Oct 21, 2010 at 06:12:48PM +1100, Tim Allen wrote: > On Thu, Oct 21, 2010 at 08:49:37AM +0200, Marco Giusti wrote: > > On Wed, Oct 20, 2010 at 08:00:54PM -0400, David Ripton wrote: > > > On 10/20/10 17:10, Laurens Van Houtven wrote: > > > > > > > Feedback is welcome: do you think the layou