openmedialibrary_platform/Linux/lib/python2.7/site-packages/twisted/web/demo.py
2014-05-16 01:20:41 +02:00

24 lines
503 B
Python

# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
I am a simple test resource.
"""
from twisted.web import static
class Test(static.Data):
isLeaf = True
def __init__(self):
static.Data.__init__(
self,
"""
<html>
<head><title>Twisted Web Demo</title><head>
<body>
Hello! This is a Twisted Web test page.
</body>
</html>
""",
"text/html")