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

Module blosxom

source code

This is the default blosxom renderer. It tries to match the behavior of the blosxom renderer.

Classes [hide private]
  NoSuchFlavourException
This exception gets thrown when the flavour requested is not available in this blog.
  BlosxomRenderer
This is the default blosxom renderer.
  Renderer
This is a null renderer.
Functions [hide private]
dict or None
get_included_flavour(taste)
PyBlosxom comes with flavours in taste.flav directories in the flavours subdirectory of the Pyblosxom package.
source code
map
get_flavour_from_dir(path, taste)
Tries to get the template files for the flavour of a certain taste (html, rss, atom10, ...) in a directory.
source code
Variables [hide private]
  __revision__ = '$Revision: 1012 $'
Function Details [hide private]

get_included_flavour(taste)

source code 
PyBlosxom comes with flavours in taste.flav directories in the flavours subdirectory of the Pyblosxom package. This method pulls the template files for the associated taste (assuming it exists) or None if it doesn't.
Parameters:
  • taste (string) - The name of the taste. e.g. "html", "rss", ...
Returns: dict or None
A dict of template type to template file or None

get_flavour_from_dir(path, taste)

source code 
Tries to get the template files for the flavour of a certain taste (html, rss, atom10, ...) in a directory. The files could be in the directory or in a taste.flav subdirectory.
Parameters:
  • path (string) - the path of the directory to look for the flavour templates in
  • taste (string) - the flavour files to look for (e.g. html, rss, atom10, ...)
Returns: map
the map of template name to template file path