/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/transport/http/__init__.py

merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
 
285
285
        return combined
286
286
 
287
 
    def put(self, relpath, f, mode=None):
288
 
        """Copy the file-like or string object into the location.
 
287
    def put_file(self, relpath, f, mode=None):
 
288
        """Copy the file-like object into the location.
289
289
 
290
290
        :param relpath: Location to put the contents, relative to base.
291
 
        :param f:       File-like or string object.
 
291
        :param f:       File-like object.
292
292
        """
293
293
        raise TransportNotPossible('http PUT not supported')
294
294
 
300
300
        """See Transport.rmdir."""
301
301
        raise TransportNotPossible('http does not support rmdir()')
302
302
 
303
 
    def append(self, relpath, f):
 
303
    def append_file(self, relpath, f, mode=None):
304
304
        """Append the text in the file-like object into the final
305
305
        location.
306
306
        """
449
449
        if not self.parse_request(): # An error code has been sent, just exit
450
450
            return
451
451
        mname = 'do_' + self.command
452
 
        if not hasattr(self, mname):
 
452
        if getattr(self, mname, None) is None:
453
453
            self.send_error(501, "Unsupported method (%r)" % self.command)
454
454
            return
455
455
        method = getattr(self, mname)