[Checkins] SVN: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/ fix test bug: the static server returned directory listings in arbitrary
Benji York
benji at zope.com
Wed Apr 28 08:47:03 EDT 2010
Log message for revision 111540:
fix test bug: the static server returned directory listings in arbitrary
order; now it sorts them
Changed:
U bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/boboserver.test
U bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/static.py
-=-
Modified: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/boboserver.test
===================================================================
--- bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/boboserver.test 2010-04-28 10:42:44 UTC (rev 111539)
+++ bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/boboserver.test 2010-04-28 12:47:02 UTC (rev 111540)
@@ -199,8 +199,8 @@
<html>
<head><title></title></head>
<body>
- <a href="doc1.txt">doc1.txt</a><br>
- <a href="subdir/">subdir/</a>
+ <a href="subdir/">subdir/</a><br>
+ <a href="doc1.txt">doc1.txt</a>
</body>
</html>
<BLANKLINE>
Modified: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/static.py
===================================================================
--- bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/static.py 2010-04-28 10:42:44 UTC (rev 111539)
+++ bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/static.py 2010-04-28 12:47:02 UTC (rev 111540)
@@ -13,7 +13,7 @@
@bobo.query('/')
def index(self):
links = []
- for name in os.listdir(self.path):
+ for name in sorted(os.listdir(self.path)):
if os.path.isdir(os.path.join(self.path, name)):
name += '/'
links.append('<a href="%s">%s</a>' % (name, name))
More information about the checkins
mailing list