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
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
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
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
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 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
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
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
_
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
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
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
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
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
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
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
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,
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
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
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
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
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
_
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
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
23 matches
Mail list logo