Model Reference

Data

MAJOR_VERSION

The major version.

Exception

exception ExceptionName

A major exception

Function

format_exception(etype, value, tb[, limit=None])

Format the exception with a traceback.

Parameters:
  • etype – exception type
  • value – exception value
  • tb – traceback object
  • limit (integer or None) – maximum number of stack frames to show
Return type:

list of strings

Decorator

@removename

Remove name of the decorated function.

@setnewname(name)

Set name of the decorated function to name.

ModelName

class ModelName
parent

TreeForeignKey (self)

The category’s parent category. Leave this blank for an root category.

name

Required CharField(100)

The name of the category.

slug

Required SlugField

URL-friendly title. It is automatically generated from the title.

active

Required BooleanField default: True

Is this item active. If it is inactive, all children are set to inactive as well.

format_exception(etype, value, tb[, limit=None])

Format the exception with a traceback.

Parameters:
  • etype – exception type
  • value – exception value
  • tb – traceback object
  • limit (integer or None) – maximum number of stack frames to show
Return type:

list of strings

static static_format_exception(etype, value, tb[, limit=None])

Format the exception with a traceback.

Parameters:
  • etype – exception type
  • value – exception value
  • tb – traceback object
  • limit (integer or None) – maximum number of stack frames to show
Return type:

list of strings

classmethod class_format_exception(etype, value, tb[, limit=None])

Format the exception with a traceback.

Parameters:
  • etype – exception type
  • value – exception value
  • tb – traceback object
  • limit (integer or None) – maximum number of stack frames to show
Return type:

list of strings