Show More
@@ -77,6 +77,14 b' class DisplayFormatter(Configurable):' | |||||
77 | ---------- |
|
77 | ---------- | |
78 | obj : object |
|
78 | obj : object | |
79 | The Python object whose format data will be computed. |
|
79 | The Python object whose format data will be computed. | |
|
80 | include : list or tuple, optional | |||
|
81 | A list of format type strings (MIME types) to include in the | |||
|
82 | format data dict. If this is set *only* the format types included | |||
|
83 | in this list will be computed. | |||
|
84 | exclude : list or tuple, optional | |||
|
85 | A list of format type string (MIME types) to exclue in the format | |||
|
86 | data dict. If this is set all format types will be computed, | |||
|
87 | except for those included in this argument. | |||
80 |
|
88 | |||
81 | Returns |
|
89 | Returns | |
82 | ------- |
|
90 | ------- | |
@@ -86,14 +94,6 b' class DisplayFormatter(Configurable):' | |||||
86 | will usually be MIME type strings and the values and JSON'able |
|
94 | will usually be MIME type strings and the values and JSON'able | |
87 | data structure containing the raw data for the representation in |
|
95 | data structure containing the raw data for the representation in | |
88 | that format. |
|
96 | that format. | |
89 | include : list or tuple, optional |
|
|||
90 | A list of format type strings (MIME types) to include in the |
|
|||
91 | format data dict. If this is set *only* the format types included |
|
|||
92 | in this list will be computed. |
|
|||
93 | exclude : list or tuple, optional |
|
|||
94 | A list of format type string (MIME types) to exclue in the format |
|
|||
95 | data dict. If this is set all format types will be computed, |
|
|||
96 | except for those included in this argument. |
|
|||
97 | """ |
|
97 | """ | |
98 | format_dict = {} |
|
98 | format_dict = {} | |
99 |
|
99 | |||
@@ -414,7 +414,7 b' class PNGFormatter(BaseFormatter):' | |||||
414 | """A PNG formatter. |
|
414 | """A PNG formatter. | |
415 |
|
415 | |||
416 | To define the callables that compute the PNG representation of your |
|
416 | To define the callables that compute the PNG representation of your | |
417 |
objects, define a :meth:`__ |
|
417 | objects, define a :meth:`__png__` method or use the :meth:`for_type` | |
418 | or :meth:`for_type_by_name` methods to register functions that handle |
|
418 | or :meth:`for_type_by_name` methods to register functions that handle | |
419 | this. The raw data should be the base64 encoded raw png data. |
|
419 | this. The raw data should be the base64 encoded raw png data. | |
420 | """ |
|
420 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now