/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/request.py

  • Committer: Robert Collins
  • Date: 2007-04-24 10:52:16 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-20070424105216-8a68b2533da78717
Add FailedSmartServerResponse.

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 FailedSmartServerResponse(SmartServerResponse):
 
96
    """A SmartServerResponse for a request which failed."""
 
97
 
 
98
    def is_successful(self):
 
99
        """FailedSmartServerResponse are not successful."""
 
100
        return False
 
101
 
 
102
 
95
103
class SuccessfulSmartServerResponse(SmartServerResponse):
96
104
    """A SmartServerResponse for a successfully completed request."""
97
105