Index: tools/telemetry/third_party/gsutilz/third_party/protorpc/demos/tunes_db/server/services.py |
diff --git a/tools/telemetry/third_party/gsutilz/third_party/protorpc/demos/tunes_db/server/services.py b/tools/telemetry/third_party/gsutilz/third_party/protorpc/demos/tunes_db/server/services.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..9849fb42b13013d66f946c0d284bb6c5fcb40f95 |
--- /dev/null |
+++ b/tools/telemetry/third_party/gsutilz/third_party/protorpc/demos/tunes_db/server/services.py |
@@ -0,0 +1,46 @@ |
+#!/usr/bin/env python |
+# |
+# Copyright 2010 Google Inc. |
+# |
+# Licensed under the Apache License, Version 2.0 (the "License"); |
+# you may not use this file except in compliance with the License. |
+# You may obtain a copy of the License at |
+# |
+# http://www.apache.org/licenses/LICENSE-2.0 |
+# |
+# Unless required by applicable law or agreed to in writing, software |
+# distributed under the License is distributed on an "AS IS" BASIS, |
+# 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 services demo. |
+ |
+Implements a simple music database. The music database is served |
+off the /music URL. It supports all built in protocols (url-encoded |
+and protocol buffers) using the default RPC mapping scheme. |
+ |
+For details about the Tunes service itself, please see tunes_db.py. |
+ |
+For details about the datastore representation of the Tunes db, please |
+see model.py. |
+""" |
+ |
+__author__ = 'rafek@google.com (Rafe Kaplan)' |
+ |
+import appengine_config |
+ |
+from protorpc.webapp import service_handlers |
+ |
+import tunes_db |
+ |
+ |
+def main(): |
+ service_handlers.run_services( |
+ [('/music', tunes_db.MusicLibraryService), |
+ ]) |
+ |
+ |
+if __name__ == '__main__': |
+ main() |