SVN: r25708 - branches/quixote1
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 7 Dec 2004 16:51:59 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: nascheme
Date: 2004-12-07 16:51:51 -0500 (Tue, 07 Dec 2004)
New Revision: 25708
Modified:
branches/quixote1/util.py
Log:
Use get_path() instead of REQUEST_URI (which is non-portable).
Modified: branches/quixote1/util.py
===================================================================
--- branches/quixote1/util.py 2004-12-07 21:45:31 UTC (rev 25707)
+++ branches/quixote1/util.py 2004-12-07 21:51:51 UTC (rev 25708)
@@ -249,8 +249,8 @@
out = StringIO()
if self.list_directory:
template = html.htmltext('<a href="%s">%s</a>%s')
- print >>out, (html.htmltext("<h1>%s</h1>")
- % request.environ['REQUEST_URI'])
+ print >>out, (html.htmltext("<h1>Index of %s</h1>")
+ % request.get_path())
print >>out, "<pre>"
print >>out, template % ('..', '..', '')
files = os.listdir(self.path)