~ubuntu-branches/ubuntu/saucy/whoopsie-daisy/saucy

« back to all changes in this revision

Viewing changes to backend/submit_core.wsgi

  • Committer: Package Import Robot
  • Author(s): Evan Dandrea
  • Date: 2012-03-16 14:36:57 UTC
  • Revision ID: package-import@ubuntu.com-20120316143657-v2fxhxc2b280v51s
Tags: 0.1.17
Ship a default configuration file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
# -*- coding: utf-8 -*-
3
3
4
 
# Copyright © 2011 Canonical Ltd.
 
4
# Copyright © 2011-2012 Canonical Ltd.
5
5
# Author: Evan Dandrea <evan.dandrea@canonical.com>
6
6
7
7
# This program is free software: you can redistribute it and/or modify
8
 
# it under the terms of the GNU General Public License as published by
9
 
# the Free Software Foundation, either version 3 of the License, or
10
 
# (at your option) any later version.
 
8
# it under the terms of the GNU Affero Public License as published by
 
9
# the Free Software Foundation; version 3 of the License.
11
10
12
11
# This program is distributed in the hope that it will be useful,
13
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
# GNU General Public License for more details.
 
14
# GNU Affero Public License for more details.
16
15
17
 
# You should have received a copy of the GNU General Public License
 
16
# You should have received a copy of the GNU Affero Public License
18
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
18
 
20
19
from cgi import parse_qs, escape
40
39
 
41
40
def application(environ, start_response):
42
41
    global channel
43
 
    params = parse_qs(environ.get('QUERY_STRING'))
 
42
    params = parse_qs(environ.get('QUERY_STRING', ''))
44
43
    uuid = ''
45
44
    if params and 'uuid' in params and 'arch' in params:
46
45
        uuid = escape(params['uuid'][0])