Gregory Bodnar: Still just telling stories

Mon, 10 Oct 2005

Escaping PyBlosxom variables

I’m not overly sure how one is supposed to directly render text based on variables that would be expanded, but this entry is very wrong.

[2005-10-10T08:46:00Z] | [/tech/pyblosxom] | #
[26 words]

Small configuration change

When I set up the pycategories plugin, I used a configuration that was provided by example in the documentation within the plugin. This was suggested as a possibility:

py["category_start"] = ""
py["category_begin"] = ""
py["category_item"] = r'%(indent)s%(category)s (%(count)d)
' py["category_end"] = "" py["category_finish"] = ""

There’s a small problem with the item listing: it doesn’t work with nested categories. However the plugin also creates the variable %(fullcategory), which fixes the problem, as so:

py["category_start"] = ""
py["category_begin"] = ""
py["category_item"] = r'%(indent)s%(category)s (%(count)d)
' py["category_end"] = "" py["category_finish"] = ""
[2005-10-10T08:39:00Z] | [/tech/pyblosxom] | #
[96 words]