[Twisted-web] Re: [PATCH] nevow.static.File directory listing

Lee Harr missive at hotmail.com
Fri Apr 2 23:50:28 MST 2004


>I was getting an infinitely recursive redirect

Actually, this patch (to nevow.static.File) will also
take care of the redirect:



274c274,281
<             return self.redirect(request)
---
>             if not request.uri.endswith('/'):
>                 self.redirect(request)
>             return dirlist.DirectoryLister(self.fp.path,
>                                             None,
>                                             self.contentTypes,
>                                             self.contentEncodings,
>                                             self.defaultType)
>             #return self.redirect(request)

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the Twisted-web mailing list