Re: [Twisted-Python] How to chain deferred calls

2009-10-22 Thread Paul Goins
Hello, >>> On Oct 21, 2009, at 4:12 PM, vit...@synapticvision.com wrote: >>> hi, how can I chain in defer methods that could raise exception while showing the exception that coming from method? This is covered in the Twisted documentation. There's 3 pages I often have reviewed whe

[Twisted-Python] Question about TAC apps and TCPClient/Server vs reactor.connect/listenTCP

2009-12-21 Thread Paul Goins
I'm embarrassed to ask about this, but I think my understanding may be unclear about the differences in how the various TCP connection functions work in Twisted. For the record, I have read the docs at http://twistedmatrix.com/documents/current/core/howto/application.html. But if I missed somethi

[Twisted-Python] Try/catching yielded Exceptions and getting proper tracebacks

2010-02-21 Thread Paul Goins
xception happens within _do_something_else on line 20. I have a simple complete example copy/pasted below. Is there a better way to accomplish this? Thanks. - Paul Goins --- from twisted.web.xmlrpc import XMLRPC from twisted.web.server import Site from twisted.web.r

Re: [Twisted-Python] Try/catching yielded Exceptions and getting proper tracebacks

2010-02-22 Thread Paul Goins
Hi Terry, > You're only printing the exception, not a full traceback, so you don't see > much. I tend to write what you're doing as follows: [...] Excellent. I'll give it a try. I had a feeling it was something like that which I was missing. I already understood that inlineCallbacks returns De

[Twisted-Python] Seeking advice: Coping with heavy log file loads

2010-04-09 Thread Paul Goins
? Any stories from experience especially? Shots in the dark are welcome. ;-) - Paul Goins ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Seeking advice: Coping with heavy log file loads

2010-04-10 Thread Paul Goins
Just wanted to respond to the input everyone's given. Thanks a lot; I'm glad I asked. I'll probably look into the syslog route. I thought about it before, but I wasn't sure how much flexibility it gives. Given the suggestions here, I've since looked into it a little more and it seems to be the

[Twisted-Python] inlineCallbacks vs explicit callbacks: performance concerns?

2010-05-09 Thread Paul Goins
m to really be used anywhere in the Twisted core code; I only see its definition and the defgen test which uses it. I'm curious of the reason why Twisted core does not use it. Is it performance related? Compatibility with older Python versions? Or something else? Thanks. - Paul Goins

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-06 Thread Paul Goins
Add --savestats. I'm on 8.2.0, but it probably should still work. - Paul Goins On 8/7/2010 8:20 AM, Jason J. W. Williams wrote: > Hi, > > I'm having an issue using twistd with --profiler=cprofile. I was using > hotshot, but there's a bug in loading big profile l

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-11 Thread Paul Goins
Let me ask this: if you use the exact same command line, but change "--profiler cprofile" to "--profiler profile"", is the file generated? - Paul Goins On 8/11/2010 6:39 AM, Jason J. W. Williams wrote: > I'm not sure what's wrong then. Tried your command li

Re: [Twisted-Python] Unhandled Deferred Error

2010-08-26 Thread Paul Goins
the error is coming out of their library. - Paul Goins On 8/26/2010 5:43 PM, shwetanka srivastava wrote: > Hi > > I'm using twisted api with starpy to make a conference call. After a > successful call this error is logged in my log file > > ERROR:twsited

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

2010-09-10 Thread Paul Goins
QL-Server tries to rollback. I don't see any of the Twisted code you're trying; I only see a traceback and it doesn't really give enough information. Any chance you could give us a short, self-contained example which demonstrates the problem?

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

2010-09-10 Thread Paul Goins
e problem if you can. - Paul Goins ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

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

2010-09-10 Thread Paul Goins
reds and callbacks really work. When you find time, read the Deferred docs. Best of luck, - Paul Goins ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] How to exit a twistd program with a status code ?

2010-09-24 Thread Paul Goins
actor.callWhenRunning(main) return app And then, you end up with possibly a really simple .tac file: import myapp.tacapp application = myapp.tacapp.create_application() That seems to give the best of both worlds from what I've seen.