~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Andrew Bennetts
  • Date: 2009-10-21 06:05:49 UTC
  • mto: This revision was merged to the branch mainline in revision 4762.
  • Revision ID: andrew.bennetts@canonical.com-20091021060549-8i7as0iacaixvckh
Add optional jail_root argument to SmartServerRequest and friends, and use it in the WSGI glue.  Allows opening branches in shared repos via bzr+http (assuming the repo should be accessible).

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
    def make_request(self, transport, write_func, request_bytes, rcp):
177
177
        protocol_factory, unused_bytes = medium._get_protocol_factory_for_bytes(
178
178
            request_bytes)
179
 
        server_protocol = protocol_factory(transport, write_func, rcp)
 
179
        server_protocol = protocol_factory(
 
180
            transport, write_func, rcp, self.backing_transport)
180
181
        server_protocol.accept_bytes(unused_bytes)
181
182
        return server_protocol