/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: 2007-04-10 14:12:35 UTC
  • mto: This revision was merged to the branch mainline in revision 2404.
  • Revision ID: andrew.bennetts@canonical.com-20070410141235-wtmjydzktegq64cz
Use the Command pattern for handling smart server commands.

This improves readability and testability.

This change has been extracted from the hpss branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
                first_line += '\n'
91
91
                req_args = _decode_tuple(first_line)
92
92
                self.request = request.SmartServerRequestHandler(
93
 
                    self._backing_transport)
 
93
                    self._backing_transport, commands=request.request_handlers)
94
94
                self.request.dispatch_command(req_args[0], req_args[1:])
95
95
                if self.request.finished_reading:
96
96
                    # trivial request