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
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
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
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
? 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
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
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
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
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
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
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?
e problem if you can.
- Paul Goins
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
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
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.
14 matches
Mail list logo