pelican/pelican
Rogdham a495527e2b Delib. overriding and overwrite detect. Fixes #938
Make deliberate overriding (*) works with overwrites detection.

(*) first introduced by d0e9c52410

The following are decided to be deliberate override:
 - articles using the `save_as` metadata
 - pages using the `save_as` metadata
 - template pages (always)

Pelican now exits in the following 2 cases:
 - at least 2 not deliberate writes to the same file name (behaviour introduced
   by the overwrite detection feature ff7410ce2a)
 - at least 2 deliberate writes to the same file name (new behaviour)

Also added info logging when deliberate overrides are performed.

Switched to StandardError instead of IOError, thanks to @ametaireau and
@russkel.
2013-08-04 12:09:26 +01:00
..
tests Deliberate overriding of an existing file to tests 2013-08-04 12:07:40 +01:00
themes Normalize whitespace via lstrip Jinja parameter 2013-08-03 16:17:26 -07:00
tools Merge pull request #950 from fbs/makedebug 2013-08-03 16:51:23 -07:00
__init__.py fix: clear directory before generation of context 2013-08-04 14:00:56 +08:00
contents.py do slug_substitutions on category and author ... 2013-07-14 23:01:16 +10:00
generators.py Delib. overriding and overwrite detect. Fixes #938 2013-08-04 12:09:26 +01:00
log.py fix for issue #761: handle unicode correctly in summary for Markdown 2013-04-03 19:38:42 -04:00
paginator.py Create new formatting context dict instead of using self.__dict__ 2013-08-03 13:49:43 -07:00
readers.py Changed meta tag "contents" attribute to "content", to conform to HTML spec. Fixes #918 2013-06-16 10:56:50 -07:00
rstdirectives.py Port pelican to python 3. 2013-01-11 03:20:09 +01:00
server.py add port option to pelican.server 2013-07-07 12:44:21 +02:00
settings.py Merge pull request #968 from russkel/encodingfix 2013-08-03 16:42:37 -07:00
signals.py generators: Update PagesGenerator to use new read_file 2013-06-12 15:02:31 -04:00
urlwrappers.py Allow text substitutions when generating slugs 2013-07-04 12:17:21 +01:00
utils.py Allow text substitutions when generating slugs 2013-07-04 12:17:21 +01:00
writers.py Delib. overriding and overwrite detect. Fixes #938 2013-08-04 12:09:26 +01:00