Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: appengine/test_results/handlers/testfilehandler.py

Issue 499103002: Make test_results deployable again. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: merge to ToT Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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))
OLDNEW
« no previous file with comments | « appengine/test_results/handlers/buildershandler.py ('k') | appengine/test_results/model/jsonresults.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698