Index: third_party/gsutil/third_party/protorpc/demos/tunes_db/server/main.py |
diff --git a/third_party/pipeline/pipeline/handlers.py b/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/main.py |
similarity index 65% |
copy from third_party/pipeline/pipeline/handlers.py |
copy to third_party/gsutil/third_party/protorpc/demos/tunes_db/server/main.py |
index dfa248cfb90eea106045f133d61cf81e39cb4c3e..25905239da5e6094f2b7dc72f02f1b515888b2ab 100755 |
--- a/third_party/pipeline/pipeline/handlers.py |
+++ b/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/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() |