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

Module debug

source code

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

Classes [hide private]
  Renderer
This is the debug renderer.
Functions [hide private]
string
escv(s)
Takes in a value.
source code
 
print_map(printfunc, keymap)
Takes a map of keys to values and applies the function f to a pretty printed version of each key/value pair.
source code
Variables [hide private]
  __revision__ = '$Id: debug.py 1043 2007-06-20 16:23:30Z willhe...
Function Details [hide private]

escv(s)

source code 
Takes in a value. If it's not a string, we repr it and turn it into a string. Then we escape it so it can be printed in HTML safely.
Parameters:
  • s (varies) - any value
Returns: string
a safe-to-print-in-html string representation of the value

print_map(printfunc, keymap)

source code 
Takes a map of keys to values and applies the function f to a pretty printed version of each key/value pair.
Parameters:
  • printfunc (function) - function for printing
  • keymap (map) - a mapping of key/value pairs

Variables Details [hide private]

__revision__

Value:
'$Id: debug.py 1043 2007-06-20 16:23:30Z willhelm $'