Re: [Twisted-Python] twisted.web with dynamic + static content

2018-11-27 Thread Glyph
> On Nov 27, 2018, at 2:37 PM, Jeff Grimmett wrote: > > Thanks, Tom. > > Is there a limit to the smallness of the proposed changes? For example, if I > had a possible two-line change to > https://twistedmatrix.com/documents/current/api/twisted.internet.wxreactor.html > >

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-11-27 Thread Jeff Grimmett
Thanks, Tom. Is there a limit to the smallness of the proposed changes? For example, if I had a possible two-line change to https://twistedmatrix.com/documents/current/api/twisted.internet.wxreactor.html (which looks like it would be done in the docstring), is it okay to just have a PR for that o

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-11-20 Thread Tom Most
On Mon, Nov 19, 2018, at 3:06 PM, Jeff Grimmett wrote: > Glyph, > > Belated (I was in the thick of a few unrelated crises) thanks - it > helps to understand a little bit of the background on the way it > works. I have made adjustments and everything works the way I was > hoping for now.> > I wis

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-11-19 Thread Jeff Grimmett
Glyph, Belated (I was in the thick of a few unrelated crises) thanks - it helps to understand a little bit of the background on the way it works. I have made adjustments and everything works the way I was hoping for now. I wish I understood it a little better, if for no other reason than to cont

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-11-01 Thread Glyph
Hi Jeff, Thanks for using Twisted. Here's a version with some small changes that works, and is self-contained. import sys from twisted.internet import reactor, endpoints from twisted.web import server from twisted.web.resource import Resource from twisted.web.static import Data sys.path.append

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-10-31 Thread Jeff Grimmett
Tried that, I get a big No Such Resource No such child resource. back. Watching it in FF's development panel, I see a 404 come back for /. /static doesn't get served at all, of course. This, however, DID work. class tServer(Resource): isLeaf = False def getChild(self, path, request):

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-10-30 Thread Donal McMullan
Try replacing: isLeaf = True with isLeaf = False On Tue, 30 Oct 2018 at 21:32, Jeff Grimmett wrote: > I'm sure I'm overlooking something obvious here but I just can't get my > head around it. > > Here's the setup: twisted.web server that generates dynamic content. Child > that serves up static