Sunday, February 14, 2010

Cheetah Templates Bug

I would never have found this bug report if I hadn't figured out the problem myself, because there's no reference in it to the error message you get. Here's what happens:

  • You use Cheetah templates
  • One of them includes a keyword that is the same as a method of a Python dictionary (e.g. $items, $update, $keys, $values)
  • You get an error ending with "Cheetah.NameMapper.NotFound: cannot find ''"
  • You get angry
Hopefully, then the following will happen:
  • You Google and find this post
  • You change your keyword
  • You smile
You're welcome.