~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Curtis Hovey
  • Date: 2012-02-24 21:34:16 UTC
  • Revision ID: curtis.hovey@canonical.com-20120224213416-pao8llb7wwyy15bb
Removed untested and defintitely broken-by-design method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
                raise ValueError('Bad request')
148
148
        data = response.read()
149
149
        return simplejson.loads(data)
150
 
 
151
 
    def hide_message(self, archive_id, message_id, hidden):
152
 
        parameters = {
153
 
            'message_id': message_id,
154
 
            'hidden': hidden,
155
 
            }
156
 
        query = {'parameters': simplejson.dumps(parameters)}
157
 
        response = self._method_archive('POST', archive_id, query)
158
 
        if response.status == httplib.BAD_REQUEST:
159
 
            if response.reason == MessageIdNotFound.__doc__:
160
 
                raise MessageIdNotFound
161
 
        data = response.read()
162
 
        return simplejson.loads(data)