Browse files

Merge twistd-web-2271-2

Author: thijs, exarkun
Reviewer: mwh
Fixes: #2271

Replace the static text served up by the default `twistd web` page to be
less optimistic about the future - it is a test page, anything that may
happen later is a happy bonus.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@30791 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
  • Loading branch information...
1 parent bc9a332 commit acc670ab75b329d1ecbd5beb534dd010ee366bec @exarkun exarkun committed Feb 17, 2011
Showing with 5 additions and 10 deletions.
  1. +5 −10 twisted/web/demo.py
  2. 0 twisted/web/topfiles/2271.misc
View
15 twisted/web/demo.py
@@ -1,29 +1,24 @@
-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
-
-"""I am a simple test resource.
+"""
+I am a simple test resource.
"""
-from twisted.python import log
from twisted.web import static
+
class Test(static.Data):
isLeaf = True
def __init__(self):
static.Data.__init__(
self,
"""
<html>
- <head><title>Temporary Test</title><head>
+ <head><title>Twisted Web Demo</title><head>
<body>
-
- Hello! This is a temporary test until a more sophisticated form
- demo can be put back in using more up-to-date Twisted APIs.
-
+ Hello! This is a Twisted Web test page.
</body>
</html>
""",
"text/html")
-
View
0 twisted/web/topfiles/2271.misc
No changes.

0 comments on commit acc670a

Please sign in to comment.