/usr/share/doc/python-twisted-web/examples/simple.rtl is in python-twisted-web 12.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # For this to work:
# Configure your web server with
# --process=.rtl=twisted.web.script.ResourceTemplate
# And make sure quixote is installed on your Python path.
from twisted.web.resource import Resource
class ExampleResource(Resource):
def render_GET(self, request):
"""\
<HTML>
<HEAD><TITLE> Welcome To Twisted Python </title></head>
<BODY><ul>"""
for i in range(10):
'<LI>';i
"""</ul></body>
</html>"""
resource = ExampleResource()
|