~hudson-openstack/burrow/trunk

« back to all changes in this revision

Viewing changes to burrow/backend/http.py

  • Committer: Tarmac
  • Author(s): Eric Day
  • Date: 2011-08-24 17:08:00 UTC
  • mfrom: (33.1.4 doc-updates)
  • Revision ID: tarmac-20110824170800-1acaswi4cs9svbu0
More docs for backend modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        pass
110
110
 
111
111
    def _add_parameters(self, url, attributes=None, filters=None):
 
112
        '''Add attributes and filters on to the URL as query parameters.'''
112
113
        separator = '?'
113
114
        if attributes is not None:
114
115
            parameters = ['ttl', 'hide']
127
128
        return url
128
129
 
129
130
    def _request(self, method, url, *args, **kwargs):
 
131
        '''Perform the request and handle the response.'''
130
132
        connection = httplib.HTTPConnection(*self.server)
131
133
        connection.request(method, '/v1.0' + url, *args, **kwargs)
132
134
        response = connection.getresponse()