t.w.util : module documentation

Part of twisted.web View Source

No module docstring
Function redirectTo Generate a redirect to the given location.
Class Redirect Undocumented
Class ChildRedirector Undocumented
Class ParentRedirect I redirect to URLPath.here().
Class DeferredResource I wrap up a Deferred that will eventually result in a Resource object.
Function htmlrepr Undocumented
Function saferepr Undocumented
Function htmlUnknown Undocumented
Function htmlDict Undocumented
Function htmlList Undocumented
Function htmlInst Undocumented
Function htmlString Undocumented
Function htmlFunc Undocumented
Function htmlIndent Undocumented
Function formatFailure Undocumented
Function _hasSubstring I return True if key is part of text.
def redirectTo(URL, request): (source)
Generate a redirect to the given location.
ParametersURLA str giving the location to which to redirect. (type: str )
requestThe request object to use to generate the redirect. (type: IRequest provider )
ReturnsA str containing HTML which tries to convince the client agent to visit the new location even if it doesn't respect the FOUND response code. This is intended to be returned from a render method, eg:
   def render_GET(self, request):
       return redirectTo("http://example.com/", request)
RaisesTypeErrorIf the type of URL a unicode instead of str.
def htmlrepr(x): (source)
Undocumented
def saferepr(x): (source)
Undocumented
def htmlUnknown(x): (source)
Undocumented
def htmlDict(d): (source)
Undocumented
def htmlList(l): (source)
Undocumented
def htmlInst(i): (source)
Undocumented
def htmlString(s): (source)
Undocumented
def htmlFunc(f): (source)
Undocumented
def htmlIndent(snippetLine): (source)
Undocumented
def formatFailure(myFailure): (source)
Undocumented
def _hasSubstring(key, text): (source)
I return True if key is part of text.
API Documentation for Twisted, generated by pydoctor at 2012-02-14 18:17:43.