~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2009-07-27 05:35:00 UTC
  • mfrom: (4570 +trunk)
  • mto: (4634.6.29 2.0)
  • mto: This revision was merged to the branch mainline in revision 4680.
  • Revision ID: andrew.bennetts@canonical.com-20090727053500-q76zsn2dx33jhmj5
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
"""Base implementation of Transport over http.
18
18
 
171
171
            self._medium = SmartClientHTTPMedium(self)
172
172
        return self._medium
173
173
 
174
 
 
175
174
    def _degrade_range_hint(self, relpath, ranges, exc_info):
176
175
        if self._range_hint == 'multi':
177
176
            self._range_hint = 'single'
622
621
            raise errors.SmartProtocolError(str(e))
623
622
        return body_filelike
624
623
 
 
624
    def _report_activity(self, bytes, direction):
 
625
        """See SmartMedium._report_activity.
 
626
 
 
627
        Does nothing; the underlying plain HTTP transport will report the
 
628
        activity that this medium would report.
 
629
        """
 
630
        pass
 
631
 
625
632
 
626
633
# TODO: May be better located in smart/medium.py with the other
627
634
# SmartMediumRequest classes