1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests/output/basic
derwinlu c4b184fa32 Consolidate validation of content
Previously we validated content outside of the content class via
calls to `is_valid_content` and some additional checks in page /
article generators (valid status).
This commit moves those checks all into content.valid() resulting
in a cleaner code structure.
This allows us to restructure how generators interact with content,
removing several old bugs in pelican (#1748, #1356, #2098).

- move verification function into content class
- move generator verifying content to contents class
- remove unused quote class
- remove draft class (no more rereading drafts)
- move auto draft status setter into Article.__init__
- add now parsing draft to basic test output
- remove problematic DEFAULT_STATUS setting
- add setter/getter for content.status
  removes need for lower() calls when verifying status
2017-07-24 14:33:23 +02:00
..
author Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
category Change ... (periods) to … (ellipsis) in summary 2016-02-22 13:03:47 -08:00
drafts Consolidate validation of content 2017-07-24 14:33:23 +02:00
feeds Use the summary as the feed's description, and put content in content 2016-10-22 16:36:09 -06:00
override Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
pages Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
tag Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
theme Load external resources via HTTPS when available 2015-06-02 08:35:12 -07:00
a-markdown-powered-article.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
archives.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
article-1.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
article-2.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
article-3.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
authors.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
categories.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
filename_metadata-example.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
index.html Change ... (periods) to … (ellipsis) in summary 2016-02-22 13:03:47 -08:00
oh-yeah.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
second-article-fr.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
second-article.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
tags.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
this-is-a-super-article.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00
unbelievable.html Update functional test output for Pygments 2.1.1 2016-02-19 12:03:48 -08:00