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

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Aaron Bentley
  • Date: 2012-01-11 13:37:23 UTC
  • mto: (6.1.30 trunk)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: aaron@canonical.com-20120111133723-cv7qfdgpd4zpk561
Cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        return urlunparse(('http', self.netloc, path, '', query, ''))
22
22
 
23
23
    def _get_connection(self):
24
 
        print 'Connecting to %s' % self.port
25
24
        return httplib.HTTPConnection(self.host, self.port)
26
25
 
27
26
    def _verb_archive(self, verb, archive_name, query, body=None):
28
27
        url = self.archive_url(archive_name, query)
29
 
        print "URL: %s" % url
30
28
        connection = self._get_connection()
31
29
        connection.request(verb, url, body)
32
30
        return connection.getresponse()