Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

demo.py 516B

123456789101112131415161718192021222324252627
  1. # Copyright (c) Twisted Matrix Laboratories.
  2. # See LICENSE for details.
  3. """
  4. I am a simple test resource.
  5. """
  6. from twisted.web import static
  7. class Test(static.Data):
  8. isLeaf = True
  9. def __init__(self):
  10. static.Data.__init__(
  11. self,
  12. b"""
  13. <html>
  14. <head><title>Twisted Web Demo</title><head>
  15. <body>
  16. Hello! This is a Twisted Web test page.
  17. </body>
  18. </html>
  19. """,
  20. "text/html",
  21. )