util.py 705 B

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- test-case-name: twisted.web.test.test_util -*-
  2. # Copyright (c) Twisted Matrix Laboratories.
  3. # See LICENSE for details.
  4. """
  5. An assortment of web server-related utilities.
  6. """
  7. __all__ = [
  8. "redirectTo",
  9. "Redirect",
  10. "ParentRedirect",
  11. "DeferredResource",
  12. "FailureElement",
  13. "formatFailure",
  14. # publicized by unit tests:
  15. "_FrameElement",
  16. "_SourceFragmentElement",
  17. "_SourceLineElement",
  18. "_StackElement",
  19. "_PRE",
  20. ]
  21. from ._template_util import (
  22. _PRE,
  23. DeferredResource,
  24. FailureElement,
  25. ParentRedirect,
  26. Redirect,
  27. _FrameElement,
  28. _SourceFragmentElement,
  29. _SourceLineElement,
  30. _StackElement,
  31. formatFailure,
  32. redirectTo,
  33. )