Trees | Indices | Help |
|
---|
|
Baseclass for all TestRenderer object renderers.
Nested Classes | |
__metaclass__ Automatic Plugin Registration through metaclasses. |
|
top_level_class Baseclass for all TestRenderer object renderers. |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Static Methods | |||
|
Class Variables | |
renders_type =
|
|
renderers =
|
|
classes =
|
|
classes_by_name =
|
|
plugin_feature =
|
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Get the best ObjectRenderer to encode this target. ObjectRenderer instances are chosen based on both the taget and the renderer they implement. Args: taget: The target object to render. We walk the MRO to select the best renderer. This is a python object to be rendered. renderer: The renderer that will be used. This can be a string (e.g. "TextRenderer") or a renderer instance. Returns: An ObjectRenderer class which is best suited for rendering the target. |
Get the best ObjectRenderer to encode this target type. ObjectRenderer instances are chosen based on both the taget and the renderer they implement. Args: taget_type: Type of the rendered object. We walk the MRO to select the best renderer. renderer: The renderer that will be used. This can be a string (e.g. "TextRenderer") or a renderer instance. Returns: An ObjectRenderer class which is best suited for rendering the target. |
Create an object renderer for an item based on this object renderer. This is useful when delegating to render something else. |
This should be overloaded to return the header Cell. Note that typically the same ObjectRenderer instance will be used to render all Cells in the same column. Args: name: The name of the Column. options: The options of the column (i.e. the dict which defines the column). Return: A Cell instance containing the formatted Column header. |
Render the target suitably. Args: target: The object to be rendered. options: A dict containing rendering options. The options are created from the column options, overriden by the row options and finally the cell options. It is ok for an instance to ignore some or all of the options. Some options only make sense in certain Renderer contexts. Returns: A Cell instance containing the rendering of target. |
Class Variable Details |
classes
|
classes_by_name
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 9 03:29:30 2017 | http://epydoc.sourceforge.net |