[Twisted-Python] util.quote deprecated

2009-03-03 Thread Pet
Hi, what is a proper way to escape user input in database query strings? I've used quote from twisted.enterprise.util, but it is deprecated now. Is there any other module for this purpose? Thanks, Pet ___ Twisted-Python mailing list Twisted-Python@twist

Re: [Twisted-Python] util.quote deprecated

2009-03-03 Thread Amaury Forgeot d'Arc
On Tue, Mar 3, 2009 at 13:17, Pet wrote: > Hi, > > what is a proper way to escape user input in database query strings? > I've used quote from twisted.enterprise.util, but it is deprecated now. > Is there any other module for this purpose? I can't do better than quote the sqlite documentation. I

Re: [Twisted-Python] util.quote deprecated

2009-03-03 Thread Jean-Paul Calderone
On Tue, 3 Mar 2009 13:17:48 +0100, Pet wrote: Hi, what is a proper way to escape user input in database query strings? I've used quote from twisted.enterprise.util, but it is deprecated now. Is there any other module for this purpose? The proper way is with "bind parameters". This keeps SQL

Re: [Twisted-Python] util.quote deprecated

2009-03-03 Thread Tim Allen
On Tue, Mar 03, 2009 at 01:17:48PM +0100, Pet wrote: > what is a proper way to escape user input in database query strings? > I've used quote from twisted.enterprise.util, but it is deprecated now. > Is there any other module for this purpose? The correct way to escape user input is not to do it a

Re: [Twisted-Python] util.quote deprecated

2009-03-03 Thread Pet
On Tue, Mar 3, 2009 at 2:04 PM, Tim Allen wrote: > On Tue, Mar 03, 2009 at 01:17:48PM +0100, Pet wrote: > > what is a proper way to escape user input in database query strings? > > I've used quote from twisted.enterprise.util, but it is deprecated now. > > Is there any other module for this purpo

[Twisted-Python] too many file descriptors in select

2009-03-03 Thread John Aherne
I have started to get this message coming up on a fairly regular basis now. I have an application that is very simple and has run by and large without problem for about 7 months. But over the pas 4 - 6 weeks has started to produce this error 'too many file descriptors in select'. The application b

Re: [Twisted-Python] too many file descriptors in select

2009-03-03 Thread Itamar Shtull-Trauring
John Aherne wrote: I have started to get this message coming up on a fairly regular basis now. I have an application that is very simple and has run by and large without problem for about 7 months. But over the pas 4 - 6 weeks has started to produce this error 'too many file descriptors in se

Re: [Twisted-Python] Twisted developers: please donate your time!

2009-03-03 Thread Paul Swartz
On Tue, Mar 3, 2009 at 12:41 AM, wrote: > > On 2 Mar, 02:08 pm, ita...@itamarst.org wrote: >> >> On Tue, 2009-02-24 at 21:25 +1300, Michael Hudson wrote: >>> >>> 2009/2/24 Itamar Shtull-Trauring : >>> > As part of the TSF's fundraising efforts, we are trying to get upfront >>> > donations of time

Re: [Twisted-Python] too many file descriptors in select

2009-03-03 Thread John Aherne
Thanks for the information. Looks pretty conclusive. Thinking about it, I reckon I must be leaking connections. So I'll go and look. Thanks again John Aherne On Tue, Mar 3, 2009 at 5:24 PM, Itamar Shtull-Trauring wrote: > John Aherne wrote: > >> I have started to get this message coming up on