[Twisted-Python] Strange error: SQL-Server tries to rollback

2010-09-09 Thread Pantelis Theodosiou
I have a simple INSERT INTO statement sent to SQL-Server using pymssql module. I use the runOperation method to send the query and I get this strange error. The data goes through OK and is written in the database but SQL-Server tries to rollback. Perhaps this is a pymssql problem. In the http://c

Re: [Twisted-Python] How to hook onto or append functionality to a class (from another class)?

2010-09-09 Thread Glyph Lefkowitz
On Sep 9, 2010, at 4:27 PM, Einar S. Idsø wrote: > Hi Glyph, and thank you for your thorough and very helpful response. :) > > On Wed, Sep 8, 2010 at 9:47 PM, Glyph Lefkowitz > wrote: >> It sounds like this is a pretty trivial application of the Publish/Subscribe >> pattern (or perhaps the Obs

Re: [Twisted-Python] twisted cred: why does avatarId need to be a str?

2010-09-09 Thread Glyph Lefkowitz
On Sep 8, 2010, at 8:12 PM, Laurens Van Houtven wrote: > Actually, I believe much of the confusion is cleared up. Apparently I > misunderstood what a Realm does. Oops! > > The application in the original mail, which I will continue to talk about in > this one, is a token endpoint. I've been to

Re: [Twisted-Python] txdev: utility for working on Twisted

2010-09-09 Thread Glyph Lefkowitz
On Sep 8, 2010, at 5:12 PM, Jonathan Lange wrote: > I wrote a tool to help do Twisted development, especially with Bazaar. > You can get the code with: > $ bzr branch lp:~jml/+junk/twisteddev Rad. Thanks for releasing this.___ Twisted-Python mailing

Re: [Twisted-Python] How to hook onto or append functionality to a class (from another class)?

2010-09-09 Thread Einar S . Idsø
Hi Glyph, and thank you for your thorough and very helpful response. :) On Wed, Sep 8, 2010 at 9:47 PM, Glyph Lefkowitz wrote: > It sounds like this is a pretty trivial application of the Publish/Subscribe > pattern (or perhaps the Observer) pattern. (...) > Add one general-purpose > "list of ob

Re: [Twisted-Python] How to get original error message in failure object

2010-09-09 Thread Pet
On Thu, Sep 9, 2010 at 2:33 PM, wrote: > On 09:42 am, petshm...@googlemail.com wrote: >>Hello, >> >>if an error occurs in HTTP11ClientProtocol request method >>(twisted.web._newclient) then error is stored in >>RequestGenerationFailed Exception and wrapped in Failure object: >> >> >>        def e

Re: [Twisted-Python] How to get original error message in failure object

2010-09-09 Thread exarkun
On 09:42 am, petshm...@googlemail.com wrote: >Hello, > >if an error occurs in HTTP11ClientProtocol request method >(twisted.web._newclient) then error is stored in >RequestGenerationFailed Exception and wrapped in Failure object: > > >def ebRequestWriting(err): >if self._state =

[Twisted-Python] How to get original error message in failure object

2010-09-09 Thread Pet
Hello, if an error occurs in HTTP11ClientProtocol request method (twisted.web._newclient) then error is stored in RequestGenerationFailed Exception and wrapped in Failure object: def ebRequestWriting(err): if self._state == 'TRANSMITTING': self._state = 'GENER