Index: third_party/gsutil/third_party/protorpc/demos/tunes_db/server/services.py |
diff --git a/third_party/pipeline/pipeline/handlers.py b/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/services.py |
similarity index 51% |
copy from third_party/pipeline/pipeline/handlers.py |
copy to third_party/gsutil/third_party/protorpc/demos/tunes_db/server/services.py |
index dfa248cfb90eea106045f133d61cf81e39cb4c3e..9849fb42b13013d66f946c0d284bb6c5fcb40f95 100755 |
--- a/third_party/pipeline/pipeline/handlers.py |
+++ b/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/services.py |
@@ -13,24 +13,34 @@ |
# 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. |
-"""Web request dispatcher for the Google App Engine Pipeline API. |
+For details about the Tunes service itself, please see tunes_db.py. |
-In a separate file from the core pipeline module to break circular dependencies. |
+For details about the datastore representation of the Tunes db, please |
+see model.py. |
""" |
-from google.appengine.ext import webapp |
-from google.appengine.ext.webapp import util as webapp_util |
+__author__ = 'rafek@google.com (Rafe Kaplan)' |
-import pipeline |
+import appengine_config |
+from protorpc.webapp import service_handlers |
-_APP = webapp.WSGIApplication(pipeline.create_handlers_map(), debug=True) |
+import tunes_db |
-def _main(): |
- webapp_util.run_wsgi_app(_APP) |
+def main(): |
+ service_handlers.run_services( |
+ [('/music', tunes_db.MusicLibraryService), |
+ ]) |
if __name__ == '__main__': |
- _main() |
+ main() |