~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Aaron Bentley
  • Date: 2012-01-13 14:04:36 UTC
  • Revision ID: aaron@canonical.com-20120113140436-vg1mmta8ub8o7vwr
Implement an archive namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        self.netloc = '%s:%d' % (host, port)
20
20
 
21
21
    def archive_url(self, archive_id, query):
22
 
        path = '/%s' % quote(archive_id)
 
22
        path = '/archive/%s' % quote(archive_id)
23
23
        query_string = urlencode(query)
24
24
        return urlunparse(('http', self.netloc, path, '', query_string, ''))
25
25