~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/service.py

  • Committer: Curtis Hovey
  • Date: 2012-03-17 21:43:06 UTC
  • Revision ID: curtis.hovey@canonical.com-20120317214306-nr1zz08jk8arbwol
Use proper terminology.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        """Set the status code and reason, then return the response."""
53
53
        if reason is None:
54
54
            reason = httplib.responses[code]
55
 
        response_code = '%s %s' % (code, reason)
 
55
        response_status = '%s %s' % (code, reason)
56
56
        response_headers = {'content-type': 'application/json'}
57
57
        response_headers.update(headers.items())
58
 
        self.start_response(response_code, response_headers.items())
 
58
        self.start_response(response_status, response_headers.items())
59
59
        return [response]
60
60
 
61
61
    def do_PUT(self):