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

Class Renderer

source code

base.RendererBase --+    
                    |    
      BlosxomRenderer --+
                        |
                       Renderer

This is a null renderer.

Instance Methods [hide private]
    Inherited from BlosxomRenderer
 
__init__(self, request, stdoutput=sys.stderr)
Constructor: Initializes the Renderer
source code
map
_getflavour(self, taste='html')
This retrieves all the template files for a given flavour taste.
source code
 
_outputFlavour(self, entry, template_name)
Find the flavour template for template_name, run any blosxom callbacks, substitute vars into it and write the template to the output
source code
string
_printTemplate(self, entry, template)
Returns: the content string
source code
string
_processContent(self)
Processes the content for the story portion of a page.
source code
(string, string)
_processEntry(self, entry, current_date)
Main workhorse of pyblosxom stories, comments and other miscelany goes here
source code
 
_run_callback(self, chain, input)
Makes calling blosxom callbacks a bit easier since they all have the same mechanics.
source code
 
getContent(self)
Return the content field
source code
 
outputTemplate(self, output, entry, template_name, override=0)
Find the flavour template for template_name, run any blosxom callbacks, substitute entry into it and append the template to the output.
source code
 
render(self, header=1)
Figures out flavours and such and then renders the content according to which flavour we're using.
source code
    Inherited from base.RendererBase
 
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