ametaireau/pelican — pull request #247 by saimn (2012-03-13 21:02:05+00:00)
Title: Summary - Fix for #245

Here is the solution I found (maybe there is a better one ?): To avoid circular reference between self.summary and the getter, I store the summary from metadata in another variable.

I also added a test for this case, using generate_lorem_ipsum from jinja2 to generate some content. The problem with this is that I don't know how to write a test from the summary with the truncate method (jinja has a truncate method but it works with a number of caracters, not words). Maybe it would be easier to do this by adding directly the content in the test file.