~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-24 18:26:21 UTC
  • mfrom: (4567 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4568.
  • Revision ID: john@arbash-meinel.com-20090724182621-68s2jhoqf3pn72n7
Merge bzr.dev 4567 to resolve NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
 
282
282
    def accept_body(self, bytes):
283
283
        """Accept body data."""
 
284
        if self._command is None:
 
285
            # no active command object, so ignore the event.
 
286
            return
284
287
        self._run_handler_code(self._command.do_chunk, (bytes,), {})
285
288
 
286
289
    def end_of_body(self):
344
347
        self._run_handler_code(self._command.execute, args, {})
345
348
 
346
349
    def end_received(self):
 
350
        if self._command is None:
 
351
            # no active command object, so ignore the event.
 
352
            return
347
353
        self._run_handler_code(self._command.do_end, (), {})
348
354
 
349
355
    def post_body_error_received(self, error_args):