| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 import time | 29 import time |
| 30 import logging | 30 import logging |
| 31 import re | 31 import re |
| 32 import webapp2 | 32 import webapp2 |
| 33 | 33 |
| 34 from google.appengine.api import users | 34 from google.appengine.api import users |
| 35 from google.appengine.ext.webapp import template | 35 from google.appengine.ext.webapp import template |
| 36 from google.appengine.ext import db | 36 from google.appengine.ext import db |
| 37 | 37 |
| 38 from ..handlers import master_config | 38 import master_config |
| 39 | 39 |
| 40 from ..model.jsonresults import JsonResults | 40 from model.jsonresults import JsonResults |
| 41 from ..model.testfile import TestFile | 41 from model.testfile import TestFile |
| 42 | 42 |
| 43 PARAM_MASTER = "master" | 43 PARAM_MASTER = "master" |
| 44 PARAM_BUILDER = "builder" | 44 PARAM_BUILDER = "builder" |
| 45 PARAM_BUILD_NUMBER = "buildnumber" | 45 PARAM_BUILD_NUMBER = "buildnumber" |
| 46 PARAM_DIR = "dir" | 46 PARAM_DIR = "dir" |
| 47 PARAM_FILE = "file" | 47 PARAM_FILE = "file" |
| 48 PARAM_NAME = "name" | 48 PARAM_NAME = "name" |
| 49 PARAM_BEFORE = "before" | 49 PARAM_BEFORE = "before" |
| 50 PARAM_NUM_FILES = "numfiles" | 50 PARAM_NUM_FILES = "numfiles" |
| 51 PARAM_KEY = "key" | 51 PARAM_KEY = "key" |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 class UploadForm(webapp2.RequestHandler): # pylint: disable=W0232 | 330 class UploadForm(webapp2.RequestHandler): # pylint: disable=W0232 |
| 331 | 331 |
| 332 """Show a form so user can upload a file.""" | 332 """Show a form so user can upload a file.""" |
| 333 | 333 |
| 334 def get(self): # pragma: no cover | 334 def get(self): # pragma: no cover |
| 335 template_values = { | 335 template_values = { |
| 336 "upload_url": "/testfile/upload", | 336 "upload_url": "/testfile/upload", |
| 337 } | 337 } |
| 338 self.response.out.write(template.render("templates/uploadform.html", | 338 self.response.out.write(template.render("templates/uploadform.html", |
| 339 template_values)) | 339 template_values)) |
| OLD | NEW |