~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Curtis Hovey
  • Date: 2012-03-16 19:49:31 UTC
  • Revision ID: curtis.hovey@canonical.com-20120316194931-xngt1fdw9ewovwqn
Use PUT for creating messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        """
75
75
        path = '%s/%s' % (archive_id, key)
76
76
        response = self._method_archive(
77
 
            'POST', path, {}, file_obj.read())
 
77
            'PUT', path, {}, file_obj.read())
78
78
        response.read()
79
79
        if response.status == httplib.BAD_REQUEST:
80
80
            raise Exception('wtf')