I&#39;ve got a resource that a) dynamically builds it&#39;s children using getChild and b) I&#39;d like to have trailing slashes.<br /><br />It seems like a lot of work - is there a facility to do this already in twisted.web.resource.Resource?<br /><br />It seems like in every resource&#39;s render(), I need to do something like:<br /><br />    def render(self, request):<br />        if request.prepath[-1] != &#39;&#39;:<br />            request.redirect(request.childLink(&quot;&quot;))<br />            request.finish()<br />            return &quot;&quot;<br />        else:<br />            return resource.Resource.render(self, request)<br /><br />And every getChild needs to look like this:<br /><br />    def getChild(self, path, request):<br />        if path == &#39;&#39;:<br />            return self<br />        elif path == &#39;edit&#39;:<br />            return CrudEdit()<br />        else:<br />            return None<br /><br />It looks like overriding this wouldn&#39;t be much better - since if I still want to use render(), the child needs to remember to call TrailingSlashResource.render(self, request) in its render() - same with getChild.  Decorators need to decorate both methods as well.<br /><br />Is there a facility in twisted.web that does this?  I&#39;m not using nevow, which appears to just have an addSlash property on it&#39;s Page objects.<br /><br />Thanks all.<br /><br />markscottwright@gmail.com