/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/smart/protocol.py

  • Committer: Andrew Bennetts
  • Date: 2008-04-02 00:14:00 UTC
  • mfrom: (3324 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080402001400-r1pqse38i03dl97w
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
class SmartServerRequestProtocolOne(SmartProtocolBase):
74
74
    """Server-side encoding and decoding logic for smart version 1."""
75
75
    
76
 
    def __init__(self, backing_transport, write_func):
 
76
    def __init__(self, backing_transport, write_func, root_client_path='/'):
77
77
        self._backing_transport = backing_transport
 
78
        self._root_client_path = root_client_path
78
79
        self.excess_buffer = ''
79
80
        self._finished = False
80
81
        self.in_buffer = ''
100
101
                first_line += '\n'
101
102
                req_args = _decode_tuple(first_line)
102
103
                self.request = request.SmartServerRequestHandler(
103
 
                    self._backing_transport, commands=request.request_handlers)
 
104
                    self._backing_transport, commands=request.request_handlers,
 
105
                    root_client_path=self._root_client_path)
104
106
                self.request.dispatch_command(req_args[0], req_args[1:])
105
107
                if self.request.finished_reading:
106
108
                    # trivial request