Home | Trees | Index | Help |
|
---|
Package Pyblosxom :: Package renderers :: Module blosxom :: Class BlosxomRenderer |
|
RendererBase
--+
|
BlosxomRenderer
Renderer
Method Summary | |
---|---|
Constructor: Initializes the Renderer | |
Return the content field | |
Find the flavour template for template_name, run any blosxom callbacks, substitute entry into it and append the template to the output. | |
Figures out flavours and such and then renders the content according to which flavour we're using. | |
This retrieves all the template files for a given flavour taste. | |
Find the flavour template for template_name, run any blosxom callbacks, substitute vars into it and write the template to the output | |
string |
Return the content string |
string |
Processes the content for the story portion of a page. |
(string, string) |
Main workhorse of pyblosxom stories, comments and other miscelany goes here |
Makes calling blosxom callbacks a bit easier since they all have the same mechanics. | |
Inherited from RendererBase | |
Populates the HTTP header with lines of text | |
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. | |
Sets the content | |
Updated the headers of the Response instance. | |
Convenience method for programs to use instead of accessing self._out.write() |
Method Details |
---|
__init__(self,
request,
stdoutput=<epydoc.imports._DevNull instance at 0x4021768c>)
Constructor: Initializes the Renderer
|
getContent(self)Return the content field This is exposed for blosxom callbacks.
|
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. If the entry has a "template_name" property and override is 1 (this happens in the story template), then we'll use that template instead.
|
render(self, header=1)Figures out flavours and such and then renders the content according to which flavour we're using.
|
_getFlavour(self, taste='html')This retrieves all the template files for a given flavour taste. This will first pull the templates for the default flavour of this taste if there are any. Then it looks at EITHER the configured datadir OR the flavourdir (if configured). It'll go through directories overriding the template files it has already picked up descending the category path of the PyBlosxom request. For example, if the user requested the "html" flavour and is looking at an entry in the category "dev/pyblosxom", then _getFlavour will: 1. pick up the flavour files in the default html flavour 2. start in EITHER datadir OR flavourdir (if configured) 3. override the default html flavour files with html flavour files in this directory or in html.flav/ subdirectory 4. override the html flavour files it's picked up so far with html files in dev/ or dev/html.flav/ 5. override the html flavour files it's picked up so far with html files in dev/pyblosxom/ or dev/pyblosxom/html.flav/ If it doesn't find any flavour files at all, then it returns None which indicates the flavour doesn't exist in this blog. @param taste: the taste to retrieve flavour files for. @type taste: string @returns: mapping of template name to template file data @rtype: map |
_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
|
_printTemplate(self, entry, template)
|
_processContent(self)Processes the content for the story portion of a page.
|
_processEntry(self, entry, current_date)Main workhorse of pyblosxom stories, comments and other miscelany goes here
|
_run_callback(self, chain, input)Makes calling blosxom callbacks a bit easier since they all have the same mechanics. This function merely calls run_callback with the arguments given and a mappingfunc. The mappingfunc copies the "template" value from the output to the input for the next function. Refer to run_callback for more details. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Feb 7 21:43:58 2006 | http://epydoc.sf.net |