Package Pyblosxom :: Package renderers :: Module debug :: Class Renderer
[hide private]
[frames] | no frames]

Class Renderer

source code

base.RendererBase --+
                    |
                   Renderer

This is the debug renderer. This is very useful for debugging plugins and templates.

Instance Methods [hide private]
 
render(self, header=1)
Renders a PyBlosxom request after we've gone through all the motions of converting data and getting entries to render.
source code
    Inherited from base.RendererBase
 
__init__(self, request, stdoutput=sys.stderr)
Constructor: Initializes the Renderer
source code
 
addHeader(self, *args)
Populates the HTTP header with lines of text
source code
 
needsContentType(self, flag)
Use the renderer to determine 'Content-Type: x/x' default is to use the renderer for Content-Type, set flag to None to indicate no Content-Type generation.
source code
 
setContent(self, content)
Sets the content
source code
 
showHeaders(self)
Updated the headers of the Response instance.
source code
 
write(self, data)
Convenience method for programs to use instead of accessing self._out.write()
source code
Method Details [hide private]

render(self, header=1)

source code 
Renders a PyBlosxom request after we've gone through all the motions of converting data and getting entries to render.
Parameters:
  • header (boolean) - either prints (1) or does not print (0) the http headers.
Overrides: base.RendererBase.render