~soren/nova/iptables-security-groups

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/web/examples/simple.rtl

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# For this to work:
 
2
# Configure your web server with 
 
3
# --process=.rtl=twisted.web.script.ResourceTemplate
 
4
# And make sure quixote is installed on your Python path.
 
5
from twisted.web.resource import Resource
 
6
 
 
7
 
 
8
class ExampleResource(Resource):
 
9
 
 
10
    def render_GET(self, request):
 
11
        """\
 
12
<HTML>
 
13
    <HEAD><TITLE> Welcome To Twisted Python </title></head>
 
14
 
 
15
    <BODY><ul>"""
 
16
        for i in range(10):
 
17
            '<LI>';i
 
18
        """</ul></body>
 
19
</html>"""
 
20
 
 
21
 
 
22
resource = ExampleResource()
 
23