module documentation

Utility functions to return a formatted name and description for a given view.

Class lazy_format Delay formatting until it's actually needed.
Function camelcase_to_spaces Translate 'CamelCaseNames' to 'Camel Case Names'. Used when generating names from view classes.
Function dedent Remove leading indent from a block of text. Used when generating descriptions from docstrings.
Function markup_description Apply HTML markup to the given description.
Function remove_trailing_string Strip trailing component `trailing` from `content` if it exists. Used when generating names from view classes.
def camelcase_to_spaces(content): (source)

Translate 'CamelCaseNames' to 'Camel Case Names'. Used when generating names from view classes.

def dedent(content): (source)

Remove leading indent from a block of text. Used when generating descriptions from docstrings. Note that python's `textwrap.dedent` doesn't quite cut it, as it fails to dedent multiline docstrings that include unindented text on the initial line.

def markup_description(description): (source)

Apply HTML markup to the given description.

def remove_trailing_string(content, trailing): (source)

Strip trailing component `trailing` from `content` if it exists. Used when generating names from view classes.