~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Curtis Hovey
  • Date: 2012-03-16 20:16:12 UTC
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: curtis.hovey@canonical.com-20120316201612-lr7b32umqgduaja6
Added a rudimentary put_archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        :param mbox: An optional mbox with messages to add to the new archive.
56
56
        """
57
57
        response = self._method_archive(
58
 
            'POST', '', {'archive_id': archive_id}, None)
 
58
            'PUT', archive_id, {}, None)
59
59
        response.read()
60
60
        if response.status == httplib.BAD_REQUEST:
61
61
            raise Exception('wtf')