[Twisted-Python] Re: adbapi and ConnectionLost.

2009-01-15 Thread Don Dwiggins
ction between my server and the database) was reset between accesses to my service. I hacked a workaround by creating a thin wrapper around adbapi that closes each connection when I'm through with it. FWIW, -- Don Dwiggins Advanced Publishing

[Twisted-Python] Re: So how does everyone use an ORM in twisted?

2009-03-17 Thread Don Dwiggins
ssing your objects, and end up with database operations from the main twisted thread. So if someone wanted the use of the ORM, would you say that they should access the objects through deferreds, just as they would with SQL? Or is it worse than that? -- Don Dwiggins Advanced Publishing Techn

Re: [Twisted-Python] Deferred documentation rewrite

2009-08-04 Thread Don Dwiggins
r what it may be worth... -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] OT - adbapi, connection timeouts, mysql - OT

2009-08-24 Thread Don Dwiggins
ng a wrapper around adbapi that closes the connection after each request. -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Don Dwiggins
y prefixing the names of all unwanted tests with "foo" to keep them from being recognized. Naturally, I'd like a better way to do this. Any good words welcome. -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Pyth

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Don Dwiggins
re several classes, each with several test cases. How would I adapt the above to my needs? -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-28 Thread Don Dwiggins
e exception: I may want to create a multi-level hierarchy of tests, rather than just the fixed file/class/method structure that unittest/trial gives you. -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] XMLRPC server: nested handlers?

2010-04-29 Thread Don Dwiggins
that you can do this "to arbitrary depths". It's not quite clear how to set this up, however. Before I start experimenting, I thought I'd ask if anyone has done this, and can show a bit of code for it. TIA, -- Don Dwiggins Advanced Publishing Technology _

[Twisted-Python] win32com client in a twisted thread

2010-05-03 Thread Don Dwiggins
tDict['lPaymentBatchId'] > model.ShowProgress = True > model.AuthorizationType = "CCD" > command.Execute(SecurityCode) Putting logging statements in, I found that it died during the first call to "command". (W

Re: [Twisted-Python] win32com client in a twisted thread

2010-05-04 Thread Don Dwiggins
Andrew, Itamar, thanks. I've taken the hint to CoInitialize the thread. That gets me a bit further, but there's still some strange stuff going on. I'm going to have to put this on the back burner for a while in favor of higher priority stuff. -- Don Dwiggins Advanced Publis

Re: [Twisted-Python] SQLAlchemy and Twisted

2010-05-05 Thread Don Dwiggins
y something more generic like SQL? Well, Bolen used a dedicated worker thread to do the SA operations (all SQL level), passing functions to it to be executed in that context. He also used a single connection in the thread to do all DB operations. -- Don Dwiggins Advanced Publishing Technolo

[Twisted-Python] Creating a COM object in a thread

2010-06-28 Thread Don Dwiggins
running it in a separate app that I'll call from the thread. TIA, -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Creating a COM object in a thread

2010-06-29 Thread Don Dwiggins
spend some time to give it a try, and to post my experiences, if it'll help advance the "state of the art" of win32 reactors. On 6/28/2010 6:17 PM, Itamar Turner-Trauring wrote: > On Mon, 2010-06-28 at 17:43 -0700, Don Dwiggins wrote: > >> What this probably means

Re: [Twisted-Python] Creating a COM object in a thread

2010-07-05 Thread Don Dwiggins
COM object. > I send the results of the COM methods back to the reactor thread using > reactor.callFromThread(). Thanks much for the help, -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Creating a COM object in a thread

2010-07-07 Thread Don Dwiggins
on is Hammond's win32com Dispatch. Question: to your knowledge, would it work to run the message pumping loop in a different thread from the one that creates and calls the COM object? I think this would simplify things a bit. -- Don Dwiggins Advanced Publishing Technology

[Twisted-Python] Porting twisted methods to a synchronous environment

2011-01-24 Thread Don Dwiggins
retty vague; I'm still in the process of conceptualizing it. I'm looking for any advice that might help avoid the all-too-obvious approach of copying code and performing surgery on it, with the all-too-well-known drawbacks. Thanks for any good words,

Re: [Twisted-Python] Porting twisted methods to a synchronous environment

2011-01-25 Thread Don Dwiggins
On 1/24/2011 12:45 PM, Phil Christensen wrote: > On Jan 24, 2011, at 2:26 PM, Don Dwiggins wrote: >> I have a server that provides access to a database in the usual way, >> using adbapi to talk to an MSSQL server. Now, I'm facing the need to >> create an application

Re: [Twisted-Python] XMLRPC, how to prevent stdout on post and get?

2011-07-19 Thread Don Dwiggins
Yes, I'm interested in this as well. Somewhat different from the OP, I'd like to have a way to turn this logging on and off, and if on, a way to specify the content of the message (in particular, the method and arguments). I've submitted Ti

[Twisted-Python] Folding the server into the client?

2011-09-14 Thread Don Dwiggins
hat would make things simpler (or maybe impossible)? Thanks for any good words, -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Folding the server into the client?

2011-09-15 Thread Don Dwiggins
y heavily. I'm willing to block the GUI, at least for now. -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] Log output formatting (was Re: logging question)

2011-11-16 Thread Don Dwiggins
27;', foo='stuff', bar='things') I suggest that this be added to the documentation string of the msg() method and http://twistedmatrix.com/documents/current/core/howto/logging.html. -- Don Dwiggins Advanced Publishing Technology _

Re: [Twisted-Python] Log output formatting (was Re: logging question)

2011-11-29 Thread Don Dwiggins
citly, or by reference to textFromEventDict. (And maybe in the documentation for ILogObserver, recommend strongly that each implementation be explicit about message formatting.) There should probably also be something in the logging howto. Any better

Re: [Twisted-Python] Log output formatting (was Re: logging question)

2011-12-02 Thread Don Dwiggins
ing.html is the right place to explain things, and needs more work than I originally thought. I'm willing to submit something, but unfortunately not in the very near future. -- Don Dwiggins Advanced Publishing Technology ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python