~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-09-14 01:48:19 UTC
  • mfrom: (4634.6.30 remove-args_received)
  • Revision ID: pqm@pqm.ubuntu.com-20090914014819-4yshlf6ooeeqznfs
(andrew) Remove SmartServerRequest.dispatch_command,
        fix SmartServerRequest.args_received.

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
        # cannot read after this.
293
293
        self.finished_reading = True
294
294
 
295
 
    def dispatch_command(self, cmd, args):
296
 
        """Deprecated compatibility method.""" # XXX XXX
297
 
        try:
298
 
            command = self._commands.get(cmd)
299
 
        except LookupError:
300
 
            raise errors.UnknownSmartMethod(cmd)
301
 
        self._command = command(self._backing_transport, self._root_client_path)
302
 
        self._run_handler_code(self._command.execute, args, {})
303
 
 
304
295
    def _run_handler_code(self, callable, args, kwargs):
305
296
        """Run some handler specific code 'callable'.
306
297
 
343
334
            command = self._commands.get(cmd)
344
335
        except LookupError:
345
336
            raise errors.UnknownSmartMethod(cmd)
346
 
        self._command = command(self._backing_transport)
 
337
        self._command = command(
 
338
            self._backing_transport, self._root_client_path)
347
339
        self._run_handler_code(self._command.execute, args, {})
348
340
 
349
341
    def end_received(self):