~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches.py

  • Committer: Martin Albisetti
  • Date: 2008-06-23 23:28:06 UTC
  • mfrom: (170.1.2 loggerhead-240512)
  • Revision ID: argentina@gmail.com-20080623232806-yx1rg1ns2ba8yvk0
 * Sort diretories before files
 * Make filename sorting case-insensitive

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
 
import logging
3
2
import sys
4
3
 
5
4
from paste import httpserver
8
7
 
9
8
from loggerhead.apps.filesystem import BranchesFromFileSystemRoot
10
9
 
11
 
 
12
 
logging.basicConfig()
13
 
logging.getLogger().setLevel(logging.DEBUG)
14
 
 
15
10
if len(sys.argv) > 1:
16
11
    path = sys.argv[1]
17
12
else: