~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/service.py

  • Committer: Curtis Hovey
  • Date: 2012-03-17 21:41:35 UTC
  • Revision ID: curtis.hovey@canonical.com-20120317214135-3aj2usnhxtjed6ot
Simplify logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        """Select the method to handle the request and return a response."""
41
41
        if self.application != 'archive':
42
42
            return self.send_response(httplib.NOT_FOUND)
43
 
        if self.method == 'PUT':
 
43
        elif self.method == 'PUT':
44
44
            return self.do_PUT()
45
45
        elif self.method == 'POST':
46
46
            return self.do_POST()