Re: [Twisted-Python] a weird problem about IOCP reactor and perspective broker

2012-03-14 Thread gelin yan
On Wed, Mar 14, 2012 at 10:04 PM, gelin yan wrote: > Hi all > > I attach two files for this problem. When i used iocp reactor with pb, > I noticed once the remote method returned a deferred object, the client app > would raise many exceptions..kinda weird. > > It is ok to return the value dir

[Twisted-Python] Twisted Log Efficiency is poor?

2012-03-14 Thread Peng Xiao -X (penxiao - Digital China at Cisco)
Hi experts, I have a question about twisted log. I used “from twisted.python import log” and “log.msg(msg_str)” to store log for my twisted program (about 40MB log message) But it’s efficiency is poor, it will take more time to finish my program when the log is open, if I close the log, the

Re: [Twisted-Python] Anyone still using Python 2.5?

2012-03-14 Thread Itamar Turner-Trauring
I've opened a ticket to drop support for Python 2.5 *after* our next release: http://twistedmatrix.com/trac/ticket/5553 If this would be a major problem for you please comment on the ticket; just to clarify, regardless of the ticket's resolution the next release (12.1) will continue to support

Re: [Twisted-Python] accurate periodic call

2012-03-14 Thread exarkun
On 11:57 am, zoran.bosn...@sloveniacontrol.si wrote: >Hello all, >Thanks for all your comments. > >I have filed a ticket regarding this issue: >http://twistedmatrix.com/trac/ticket/5552 > >I hope it will be accepted as a problem. Hi Zoran, Thanks for the follow-up. We're already tracking this fe

[Twisted-Python] a weird problem about IOCP reactor and perspective broker

2012-03-14 Thread gelin yan
Hi all I attach two files for this problem. When i used iocp reactor with pb, I noticed once the remote method returned a deferred object, the client app would raise many exceptions..kinda weird. It is ok to return the value directly (no defer) The most interested part is when I used select

Re: [Twisted-Python] accurate periodic call

2012-03-14 Thread Zoran Bošnjak
Hello all, Thanks for all your comments. I have filed a ticket regarding this issue: http://twistedmatrix.com/trac/ticket/5552 I hope it will be accepted as a problem. regards, Zoran From: twisted-python-boun...@twistedmatrix.com [twisted-python-boun...

Re: [Twisted-Python] Basic Resource Tree question

2012-03-14 Thread Lusana Ali
That worked a charm and I feel the fool for not having noticed that simple error =) Much appreciated! Lusana On Wed, Mar 14, 2012 at 9:16 PM, Enrique Samson Jr, wrote: > On 03/14/2012 05:46 PM, Lusana Ali wrote: >> class Main(Resource): >> >>     def get_child(self, name, request): >>         pr

Re: [Twisted-Python] Basic Resource Tree question

2012-03-14 Thread Enrique Samson Jr,
On 03/14/2012 05:46 PM, Lusana Ali wrote: > class Main(Resource): > > def get_child(self, name, request): > print "trying to get main" > return IndexPage() Try changing get_child to getChild. --Enrique ___ Twisted-Python mailing lis

Re: [Twisted-Python] Basic Resource Tree question

2012-03-14 Thread Jasper St. Pierre
This probably isn't the proper way to do it, but it should work: root = resource.Resource() root.putChild('terms', Terms()) root.putChild('profile', Profile()) root.putChild('', IndexPage()) On Wed, Mar 14, 2012 at 5:46 AM, Lusana Ali wrote: > Hi, > > Im trying to setup just a ve

[Twisted-Python] Basic Resource Tree question

2012-03-14 Thread Lusana Ali
Hi, Im trying to setup just a very simple site using a Resource Tree (some code below). The problem I'm having is getting the root / to render. so when i go to domain.com/ I get "No Such Resource No such child resource" The child nodes {terms,profile} are rendering fine. So looking at the resourc