~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/browser/sourcepackagerecipe.py

  • Committer: Henning Eggers
  • Date: 2011-08-26 14:51:02 UTC
  • mto: This revision was merged to the branch mainline in revision 13837.
  • Revision ID: henning@canonical.com-20110826145102-6rhnh6cbq8cnpkcn
Refactored request build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
479
479
    def _process_error(self, data=None, builds=None, informational=None,
480
480
                       errors=None, reason="Validation"):
481
481
        """Set up the response and json data to return to the caller."""
482
 
        self.request.response.setStatus(400, reason)
 
482
        self.request.response.setStatus(200, reason)
483
483
        self.request.response.setHeader('Content-type', 'application/json')
484
484
        return_data = dict(builds=builds, errors=errors)
485
485
        if informational: