Re: [PATCH] nevow.static.File directory listing
Everything at divmod recently moved to subversion. Use the following:
svn co svn://divmod.org/svn/Nevow/trunk Nevow
Ah. Ok. I am getting the cvs link from the bottom of the page here: http://www.divmod.org/Home/Projects/Nevow/
Hmm, that's strange. Here /images is redirected to /images/ and I get a directory list as expected. Could you paste the entire stack trace please.
2004/04/05 22:10 EDT [HTTPChannel,2,127.0.0.1] Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/twisted/protocols/http.py", line 554, in requestReceived self.process() File "/usr/local/lib/python2.3/site-packages/nevow/appserver.py", line 130, in process return self.site.getResourceFor( File "/usr/local/lib/python2.3/site-packages/twisted/internet/defer.py", line 189, in addCallback callbackKeywords=kw) File "/usr/local/lib/python2.3/site-packages/twisted/internet/defer.py", line 180, in addCallbacks self._runCallbacks() --- <exception caught here> --- File "/usr/local/lib/python2.3/site-packages/twisted/internet/defer.py", line 313, in _runCallbacks self.result = callback(self.result, *args, **kw) File "/usr/local/lib/python2.3/site-packages/nevow/appserver.py", line 133, in <lambda> lambda resource: inevow.IResource(resource).renderHTTP(self) File "/usr/local/lib/python2.3/site-packages/nevow/static.py", line 290, in renderHTTP f = self.openForReading() File "/usr/local/lib/python2.3/site-packages/nevow/static.py", line 253, in openForReading return self.fp.open() File "/usr/local/lib/python2.3/site-packages/twisted/python/filepath.py", line 138, in open return open(self.path, mode+'b') exceptions.IOError: [Errno 21] Is a directory 2004/04/05 22:10 EDT [HTTPChannel,2,127.0.0.1] html is not a string: None 2004/04/05 22:10 EDT [HTTPChannel,2,127.0.0.1] 127.0.0.1 - - [06/Apr/2004:02:10:53 +0000] "GET /images HTTP/1.1" 500 8478 "-" "Mozilla/5.0 (compatible; Konqueror/3.2; FreeBSD) (KHTML, like Gecko)" _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
participants (1)
-
Lee Harr