~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to wsgitest.py

  • Committer: Michael Hudson
  • Date: 2008-06-16 23:50:29 UTC
  • mto: This revision was merged to the branch mainline in revision 164.
  • Revision ID: michael.hudson@canonical.com-20080616235029-2wfu8fdh3q55uoca
redirect from /directory to /directory/

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        except errors.NotBranchError:
30
30
            segment = path_info_pop(environ)
31
31
            if segment is None:
 
32
                raise httpexceptions.HTTPMovedPermanently(environ['SCRIPT_NAME'] + '/')
 
33
            elif segment == '':
32
34
                request = WSGIRequest(environ)
33
35
                response = WSGIResponse()
34
36
                listing = [d for d in os.listdir(path) if not d.startswith('.')]
49
51
            try:
50
52
                _history = History.from_branch(b)
51
53
                _history.use_file_cache(FileChangeCache(_history, sql_dir))
52
 
                print '!!!', self.folder, path
53
54
                if not self.folder:
54
55
                    name = os.path.basename(os.path.abspath(path))
55
56
                else: