~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge up split out hpss-chroot branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        self.chroot_server = chroot.ChrootServer(backing_transport)
99
99
        self.chroot_server.setUp()
100
100
        self.backing_transport = get_transport(self.chroot_server.get_url())
101
 
        # XXX: explain why not:
 
101
        # While the chroot server can technically be torn down at this point,
 
102
        # as all it does is remove the scheme registration from transport's 
 
103
        # protocol dictionary, we dont *just in case* there are parts of 
 
104
        # bzrlib that will invoke 'get_transport' on urls rather than cloning
 
105
        # around the existing transport.
102
106
        #self.chroot_server.tearDown()
103
107
 
104
 
        #self.backing_transport = chroot.ChrootTransportDecorator(
105
 
        #    'chroot+' + backing_transport.base, _decorated=backing_transport)
106
 
 
107
108
    def __call__(self, environ, start_response):
108
109
        """WSGI application callable."""
109
110
        if environ['REQUEST_METHOD'] != 'POST':