Expose the storeblob service in API

Bug #315358 reported by Markus Korn
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Please export the storeblob service at [0] in the API. This service is used by apport and missing this would block converting apport from screenscraping to launchpadlib.

Markus

[0] https://edge.launchpad.net/+storeblob

Tags: api lp-bugs
Changed in launchpad:
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

In case it is helpful, this is python-launchpad-bugs' implementation of a convenient storeblob API. We have used that in apport for years:

        import storeblob

        def progress_callback(sent, total):
             print 'uploaded %i of %i bytes' % (sent, total)

        use_staging = True
        blob = open('/tmp/data')
        ticket = storeblob.upload(blob, progress_callback, staging=use_staging)

Revision history for this message
Martin Pitt (pitti) wrote :

This is the multipartpost_handler, as required for the storeblob API.

Curtis Hovey (sinzui)
Changed in malone:
importance: Undecided → Low
Revision history for this message
Robert Collins (lifeless) wrote :

http://pypi.python.org/pypi/poster/ implements the core already, we could trivially expose that as the launchpadlib interface : if there is interest in taking this route I can package it up pretty quickly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.