class documentation

class TextFormatObject(object): (source)

View In Hierarchy

Provide text-format helper methods shared by content objects.

Method getSecNo Return the computed section number for this node.
Method getText Return an object text value, optionally prefixed with the section number.
Method renderText Render text using the configured text format and optional custom hook.
def getSecNo(self): (source)

Return the computed section number for this node.

Section numbers are generated from headline/page sibling order and cached in the request buffer for repeated lookups.

def getText(self, REQUEST, key='text', encoding='utf-8', errors='strict'): (source)

Return an object text value, optionally prefixed with the section number.

def renderText(self, format, key, text, REQUEST, id=None, clazz=None): (source)

Render text using the configured text format and optional custom hook.

Supports markdown conversion and UUID link substitution for markdown output.