refactored code and introduced a new signal in ArticlesGenerator __init__

This commit is contained in:
Marco Milanesi 2011-09-07 17:08:28 +02:00
commit 48d7df72f1
4 changed files with 18 additions and 22 deletions

View file

@ -101,6 +101,7 @@ class ArticlesGenerator(Generator):
self.categories = defaultdict(list)
super(ArticlesGenerator, self).__init__(*args, **kwargs)
self.drafts = []
signals.article_generator_init.send(self)
def generate_feeds(self, writer):
"""Generate the feeds from the current context, and output files."""