aboutsummaryrefslogtreecommitdiff
path: root/myrpki.rototill/cherrypy-example.py
diff options
context:
space:
mode:
Diffstat (limited to 'myrpki.rototill/cherrypy-example.py')
-rw-r--r--myrpki.rototill/cherrypy-example.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/myrpki.rototill/cherrypy-example.py b/myrpki.rototill/cherrypy-example.py
new file mode 100644
index 00000000..c5c97fef
--- /dev/null
+++ b/myrpki.rototill/cherrypy-example.py
@@ -0,0 +1,12 @@
+# $Id$
+
+import cherrypy
+
+class HelloWorld(object):
+
+ @cherrypy.expose
+ def index(self):
+ return "Hello world!"
+
+if __name__ == "__main__":
+ cherrypy.quickstart(HelloWorld())