Re: [Twisted-Python] twisted.web, url -> resource mapping and isLeaf questions

2010-11-30 Thread David
On 11/30/2010 05:42 PM, Glyph Lefkowitz wrote: > I'm not sure what you're asking here; it seems like you've figured out > the resource model. It was not obvious to me I figured it out, I guess :) > It has some rough edges, which we are trying to > eventually fix (see, for example,

Re: [Twisted-Python] twisted.web, url -> resource mapping and isLeaf questions

2010-11-30 Thread Glyph Lefkowitz
On Nov 30, 2010, at 1:07 AM, David wrote: > Isn't there a more natural way of doing things ? No. I'm not sure what you're asking here; it seems like you've figured out the resource model. It has some rough edges, which we are trying to eventually fix (see, for example, ).

[Twisted-Python] twisted.web, url -> resource mapping and isLeaf questions

2010-11-29 Thread David
Hi, I am following "twisted in 60sec" series, but even the simple examples are a bit unclear to me, especially w.r.t. url mapping. For example: # assume the right imports... class MainPage(Resource): isLeaf = True def render_GET(self, request): return "somestring" resource =