~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Robert Collins
  • Date: 2007-04-24 10:40:22 UTC
  • mto: (2432.3.5 hpss-vfs-fallback)
  • mto: This revision was merged to the branch mainline in revision 2463.
  • Revision ID: robertc@lifelesswks.robertcollins.net-20070424104022-308ab78a663c23f7
Add SuccessfulSmartServerResponse.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        return "<SmartServerResponse args=%r body=%r>" % (self.args, self.body)
93
93
 
94
94
 
 
95
class SuccessfulSmartServerResponse(SmartServerResponse):
 
96
    """A SmartServerResponse for a successfully completed request."""
 
97
 
 
98
    def is_successful(self):
 
99
        """SuccessfulSmartServerResponse are successful."""
 
100
        return True
 
101
 
 
102
 
95
103
class SmartServerRequestHandler(object):
96
104
    """Protocol logic for smart server.
97
105