[Twisted-Python] web.resource.Resource.putChild() problem

March 15, 2007
7:08 p.m.
Hi, can someone help. I've used the code snippet below to create a http control site for a web app. But I want to re-render the html pages from a sub dir, 'controlSit/pp', so I figured putChild() would help. def makeControlSite(): site = static.File('controlSite') site.putChild('pp', ProcessPage()) return site So I set the app going with twistd and the site files, control/*.* and control/pp/*.* get returned to the browser as is. My ProcessPage() resource seems to be ignored. Does static.File look for child resources or can I not mix static.File with putChild() as I've attempted to do? Help appreciated, John
6571
Age (days ago)
6571
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Pote