ludovicchabant/PieCrust — pull request #88 by kinow (2013-05-16 20:03:15+00:00)
Title: Fix for post filtering when there're multiple calls with filtering

We are migrating tupilabs.com from Wordpress to PieCrust! :D Thanks for such a great tool.

One problem that we found during the migration was that we displayed three posts from three categories in the home page: news, blog and ideas.

We had three blocks, using `for post in blog.posts.in_category('blog').limit(3)`, However, only the first set of posts were displayed. It happened because the original WrapperIterator was replaced by a ConfigFilterIterator, and in the next call the ConfigFilterIterator couldn't be used correctly (we needed the original WrapperIterator).

After patching the PageIterator we fixed this issue. The patched PageIterator in this pull requests works for us, but please feel free to massage the code or make any necessary modifications.

Thanks once again!
Bruno