~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Aaron Bentley
  • Date: 2012-01-13 15:39:22 UTC
  • Revision ID: aaron@canonical.com-20120113153922-mcratpriu5rfuxb1
implement include_hidden.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
    def get_messages(self, archive_id, message_ids=None, limit=None,
47
47
                     memo=None, order=None, headers=None,
48
 
                     max_body_length=None):
 
48
                     max_body_length=None, include_hidden=False):
49
49
        parameters = {}
50
50
        if message_ids is not None:
51
51
            parameters['message_ids'] = message_ids
59
59
            parameters['headers'] = headers
60
60
        if max_body_length is not None:
61
61
            parameters['max_body_length'] = max_body_length
 
62
        parameters['include_hidden'] = include_hidden
62
63
        query = {'parameters': simplejson.dumps(parameters)}
63
64
        response = self._verb_archive('GET', archive_id, query)
64
65
        if response.status == httplib.BAD_REQUEST: