Add a pages_generator_finalized signal.

I wrote a plugin that I'd like to also be able to run on pages in
addition to articles. Adding this signal will let me update the content
when a page is finished being generated.
This commit is contained in:
Chris Streeter 2013-02-10 12:42:54 -08:00
commit de44644700
3 changed files with 4 additions and 0 deletions

View file

@ -475,6 +475,8 @@ class PagesGenerator(Generator):
self._update_context(('pages', ))
self.context['PAGES'] = self.pages
signals.pages_generator_finalized.send(self)
def generate_output(self, writer):
for page in chain(self.translations, self.pages,
self.hidden_translations, self.hidden_pages):