Activate the default formatters.
(self)
| 67 | formatters = Dict() |
| 68 | @default('formatters') |
| 69 | def _formatters_default(self): |
| 70 | """Activate the default formatters.""" |
| 71 | formatter_classes = [ |
| 72 | PlainTextFormatter, |
| 73 | HTMLFormatter, |
| 74 | MarkdownFormatter, |
| 75 | SVGFormatter, |
| 76 | PNGFormatter, |
| 77 | PDFFormatter, |
| 78 | JPEGFormatter, |
| 79 | LatexFormatter, |
| 80 | JSONFormatter, |
| 81 | JavascriptFormatter |
| 82 | ] |
| 83 | d = {} |
| 84 | for cls in formatter_classes: |
| 85 | f = cls(parent=self) |
| 86 | d[f.format_type] = f |
| 87 | return d |
| 88 | |
| 89 | def format(self, obj, include=None, exclude=None): |
| 90 | """Return a format data dict for an object. |
nothing calls this directly
no outgoing calls
no test coverage detected