[Repoze-checkins] r596 - in playground/trunk/paul/pasteguide: . static step01
Paul Everitt
paul at agendaless.com
Sat Dec 1 00:19:35 UTC 2007
Author: Paul Everitt <paul at agendaless.com>
Date: Sat Dec 1 00:19:35 2007
New Revision: 596
Log:
Beginning of paste tutorial for talk
Added:
playground/trunk/paul/pasteguide/
playground/trunk/paul/pasteguide/static/
playground/trunk/paul/pasteguide/static/example.html
playground/trunk/paul/pasteguide/step01/
playground/trunk/paul/pasteguide/step01/__init__.py
playground/trunk/paul/pasteguide/step01/app.py
playground/trunk/paul/pasteguide/step01/serve.ini
Added: playground/trunk/paul/pasteguide/static/example.html
==============================================================================
--- (empty file)
+++ playground/trunk/paul/pasteguide/static/example.html Sat Dec 1 00:19:35 2007
@@ -0,0 +1,8 @@
+<html>
+<head>
+<title>Foo</title>
+</head>
+<body>
+<h1>foo</h1>
+</body>
+</html>
Added: playground/trunk/paul/pasteguide/step01/__init__.py
==============================================================================
--- (empty file)
+++ playground/trunk/paul/pasteguide/step01/__init__.py Sat Dec 1 00:19:35 2007
@@ -0,0 +1 @@
+#
Added: playground/trunk/paul/pasteguide/step01/app.py
==============================================================================
--- (empty file)
+++ playground/trunk/paul/pasteguide/step01/app.py Sat Dec 1 00:19:35 2007
@@ -0,0 +1,10 @@
+
+
+def say_hello(environ, start_response):
+ start_response("200 OK", [('Content-type', 'text/plain')])
+ return ["World"]
+
+
+def app_factory(global_config, **local_conf):
+ return say_hello
+
Added: playground/trunk/paul/pasteguide/step01/serve.ini
==============================================================================
--- (empty file)
+++ playground/trunk/paul/pasteguide/step01/serve.ini Sat Dec 1 00:19:35 2007
@@ -0,0 +1,7 @@
+[server:main]
+use = egg:Paste#http
+host = 127.0.0.1
+port = 8080
+
+[app:main]
+paste.app_factory = step01.app:app_factory
More information about the Repoze-checkins
mailing list