2005-04-24 | paulb | file changeset files shortlog | [project @ 2005-04-24 22:57:24 by paulb] Added an example resembling that in the documentation. |
paulb@352 | 1 | #!/usr/bin/env python |
paulb@352 | 2 | |
paulb@352 | 3 | "A very simple application for test purposes." |
paulb@352 | 4 | |
paulb@352 | 5 | class VerySimpleResource: |
paulb@352 | 6 | |
paulb@352 | 7 | "A very simple resource." |
paulb@352 | 8 | |
paulb@352 | 9 | def respond(self, trans): |
paulb@352 | 10 | out = trans.get_response_stream() |
paulb@352 | 11 | print >>out, "Hello world." |
paulb@352 | 12 | |
paulb@352 | 13 | # vim: tabstop=4 expandtab shiftwidth=4 |