Re: [Twisted-Python] Using sqlalchemy in twisted.

2009-03-04 Thread Peter Cai
I changed my code to this style, it works again. This code would create a new session on each request and close it immediately. Hope this trick could save me! #= def require_session(f): '''create and close session for each synchronous method''' de

Re: [Twisted-Python] Using sqlalchemy in twisted.

2009-03-04 Thread Peter Cai
I'm not quite sure, but I think I'm pretty careful of sharing objects between threads. 1st, I only cached as few as possible orm objects. I tried to detach them, but I found that if I detach them, I can't access any of their fields any more. 2nd, I create new orm objects based on client request,

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

2009-03-04 Thread Alex Clemesha
On Wed, Mar 4, 2009 at 2:22 PM, Florent Aide wrote: > On Wed, Mar 4, 2009 at 11:20 PM, Florent Aide wrote: >> Itamar Shtull-Trauring a écrit : >> >> So, if you're interested, please reply, saying something like "I will >> spend two weeks working on Gopher support over the next year." >> >> >> Hi

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

2009-03-04 Thread Florent Aide
On Wed, Mar 4, 2009 at 11:20 PM, Florent Aide wrote: > Itamar Shtull-Trauring a écrit : > > So, if you're interested, please reply, saying something like "I will > spend two weeks working on Gopher support over the next year." > > > Hi all, > > I have worked in the last days on a demo application

Re: [Twisted-Python] Using sqlalchemy in twisted.

2009-03-04 Thread Valentino Volonghi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 4, 2009, at 11:15 AM, Chris Foster wrote: I think SQLAlchemy's ORM might work fine with Twisted. Check out http://foss.eepatents.com/sAsync/ . sAsync doesn't appear to be widely used, but I got the examples to run with some minor change

Re: [Twisted-Python] Using sqlalchemy in twisted.

2009-03-04 Thread Chris Foster
I think SQLAlchemy's ORM might work fine with Twisted. Check out http://foss.eepatents.com/sAsync/ . sAsync doesn't appear to be widely used, but I got the examples to run with some minor changes to the sqlite connection. I'm hoping to try something useful in the next week or two. On Mar

Re: [Twisted-Python] Using sqlalchemy in twisted.

2009-03-04 Thread Valentino Volonghi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 4, 2009, at 3:28 AM, Peter Cai wrote: The code doesn't work. When I limit the thread numbers to 1 reactor.suggestThreadPoolSize(1) Everything goes fine. Other wise the server would be blocked and must be killed by "kill 9 ...". The

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

2009-03-04 Thread Jean-Paul Calderone
On Wed, 4 Mar 2009 09:34:54 -0800 (PST), Andrew Francis wrote: Hi Itamar and Colleages: As part of the TSF's fundraising efforts, we are trying to get upfront donations of time you will spend developing Twisted. It will then get matched by a donor, if we are successful in getting this grant.

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

2009-03-04 Thread Andrew Francis
Hi Itamar and Colleages: >As part of the TSF's fundraising efforts, we are trying to get upfront >donations of time you will spend developing Twisted. It will then get >matched by a donor, if we are successful in getting this grant. So if >you're planning on working on Twisted anyway this year,

Re: [Twisted-Python] how to pass on the connection failed or connection lost error

2009-03-04 Thread Jean-Paul Calderone
On Wed, 4 Mar 2009 06:39:59 -0800 (PST), khawar hasham wrote: Hi let me first explain the application that I am developing. I have an application that will use the twisted part as a plugin. this twisted part will act as server and as client both. my application call the plugin method to send

[Twisted-Python] how to pass on the connection failed or connection lost error

2009-03-04 Thread khawar hasham
Hi let me first explain the application that I am developing. I have an application that will use the twisted part as a plugin. this twisted part will act as server and as client both. my application call the plugin method to send data to server module using connectTCP. now the problem is I ca

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

2009-03-04 Thread Raymond Cote
Itamar Shtull-Trauring wrote: Yes - thanks to you and all thee rest of the people who are volunteering! Anyone else willing to step up? I'll commit to one week to create and document another example for the web site. ___ Twisted-Python mailing li

[Twisted-Python] Using sqlalchemy in twisted.

2009-03-04 Thread Peter Cai
Hi, all I am using sqlalchemy in twisted in my project in the way below. Defer any database operation so the twisted's main thread won't be blocked. And I use scoped_session, so that sessions won't have to be created again and again. == class Database() de

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

2009-03-04 Thread Burus
I will spend about two weeks to update code and english docs for the http://fats.burus.org projectand about 4 weeks to contribute abstract database synchronizer engine (dbsync) based on the twisted for the twisted-python community under the MIT license. I have negotiations with our organization(gov