class documentation

class twisted.web.util._SourceLineElement(Element): (source)

View In Hierarchy

_SourceLineElement is an IRenderable which can render a single line of source code.

Instance Variable number A int giving the line number of the source code to be rendered.
Instance Variable source A str giving the source code to be rendered.
Method __init__ Undocumented
Method sourceLine Render the line of source as a child of tag.
Method lineNumber Render the line number as a child of tag.

Inherited from Element:

Instance Variable loader The factory which will be used to load documents to return from render.
Method lookupRenderMethod Look up and return the named render method.
Method render Implement IRenderable to allow one Element to be embedded in another's template or rendering output.
number = (source)
A int giving the line number of the source code to be rendered.
source = (source)
A str giving the source code to be rendered.
def __init__(self, loader, number, source): (source)

Undocumented

@renderer
def sourceLine(self, request, tag): (source)

Render the line of source as a child of tag.

@renderer
def lineNumber(self, request, tag): (source)

Render the line number as a child of tag.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.