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

Unified Diff: third_party/gsutil/third_party/protorpc/demos/echo/main.py

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/gsutil/third_party/protorpc/demos/echo/main.py
diff --git a/third_party/pipeline/pipeline/handlers.py b/third_party/gsutil/third_party/protorpc/demos/echo/main.py
similarity index 65%
copy from third_party/pipeline/pipeline/handlers.py
copy to third_party/gsutil/third_party/protorpc/demos/echo/main.py
index dfa248cfb90eea106045f133d61cf81e39cb4c3e..25905239da5e6094f2b7dc72f02f1b515888b2ab 100755
--- a/third_party/pipeline/pipeline/handlers.py
+++ b/third_party/gsutil/third_party/protorpc/demos/echo/main.py
@@ -13,24 +13,24 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+#
-"""Web request dispatcher for the Google App Engine Pipeline API.
+__author__ = 'rafek@google.com (Rafe Kaplan)'
-In a separate file from the core pipeline module to break circular dependencies.
-"""
+import appengine_config
from google.appengine.ext import webapp
-from google.appengine.ext.webapp import util as webapp_util
-
-import pipeline
+from google.appengine.ext.webapp import util
-_APP = webapp.WSGIApplication(pipeline.create_handlers_map(), debug=True)
+application = webapp.WSGIApplication(
+ [('/', webapp.RedirectHandler.new_factory('/protorpc/form'))],
+ debug=True)
-def _main():
- webapp_util.run_wsgi_app(_APP)
+def main():
+ util.run_wsgi_app(application)
if __name__ == '__main__':
- _main()
+ main()

Powered by Google App Engine
This is Rietveld 408576698