cement.ext.ext_print
Cement print extension module.
- class cement.ext.ext_print.PrintDictOutputHandler(**kw)[source]
Bases:
OutputHandler
This class implements the Output Handler interface. It is intended primarily for development where printing out a string reprisentation of the data dictionary would be useful. Please see the developer documentation on Output Handling.
- class Meta[source]
Bases:
object
Handler meta-data
- label = 'print_dict'
The string identifier of this handler.
- overridable = False
Whether or not to include
json
as an available choice to override theoutput_handler
via command line options.
- class cement.ext.ext_print.PrintOutputHandler(**kw)[source]
Bases:
OutputHandler
This class implements the Output Handler interface. It takes a dict and only prints out the
out
key. It is primarily used by theapp.print()
extended function in order to replaceprint()
so that framework features likepre_render
andpost_render
hooks are honored. Please see the developer documentation on Output Handling.- class Meta[source]
Bases:
object
Handler meta-data
- label = 'print'
The string identifier of this handler.
- overridable = False
Whether or not to include
json
as an available choice to override theoutput_handler
via command line options.