~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/wsgi.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-03 10:06:19 UTC
  • mfrom: (4999.3.2 apport)
  • Revision ID: pqm@pqm.ubuntu.com-20100203100619-f76bo5y5bd5c14wk
(mbp) use apport to send bugs, not just store them

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
20
20
    http://www.python.org/dev/peps/pep-0333/
21
21
"""
22
22
 
23
 
from __future__ import absolute_import
24
 
 
25
23
from cStringIO import StringIO
26
24
 
27
 
from bzrlib.smart import medium
 
25
from bzrlib.smart import protocol, medium
28
26
from bzrlib.transport import chroot, get_transport
29
27
from bzrlib.urlutils import local_path_to_url
30
28
 
103
101
            backing_transport.  This is used to interpret relpaths received from
104
102
            the client.
105
103
        """
106
 
        # Use a ChrootServer so that this web application won't
 
104
        # Use a ChrootTransportDecorator so that this web application won't
107
105
        # accidentally let people access locations they shouldn't.
108
106
        # e.g. consider a smart server request for "get /etc/passwd" or
109
107
        # something.