forked from github/pelican
Merge pull request #1408 from arty-name/feed-written
Add feed_written signal
This commit is contained in:
commit
cb11bea1f2
3 changed files with 4 additions and 0 deletions
|
|
@ -44,3 +44,4 @@ content_object_init = signal('content_object_init')
|
|||
|
||||
# Writers signals
|
||||
content_written = signal('content_written')
|
||||
feed_written = signal('feed_written')
|
||||
|
|
|
|||
|
|
@ -121,6 +121,8 @@ class Writer(object):
|
|||
with self._open_w(complete_path, encoding) as fp:
|
||||
feed.write(fp, 'utf-8')
|
||||
logger.info('Writing %s', complete_path)
|
||||
|
||||
signals.feed_written.send(complete_path, context=context, feed=feed)
|
||||
return feed
|
||||
finally:
|
||||
locale.setlocale(locale.LC_ALL, old_locale)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue