mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
settings: Make DEFAULT_CONFIG public
This dictionary is accessed by plugins (like `summary`) which add new settings, so it should be public (i.e. no prefixed underscore). The changed name length would have led to a re-indenting of the default contents anyway, so I shifted them all to four spaces.
This commit is contained in:
parent
c6de4430a0
commit
e9dc1dd478
6 changed files with 105 additions and 108 deletions
|
|
@ -14,7 +14,7 @@ from datetime import datetime
|
|||
|
||||
|
||||
from pelican import signals
|
||||
from pelican.settings import _DEFAULT_CONFIG
|
||||
from pelican.settings import DEFAULT_CONFIG
|
||||
from pelican.utils import (slugify, truncate_html_words, memoized, strftime,
|
||||
python_2_unicode_compatible, deprecated_attribute,
|
||||
path_to_url)
|
||||
|
|
@ -44,7 +44,7 @@ class Content(object):
|
|||
if metadata is None:
|
||||
metadata = {}
|
||||
if settings is None:
|
||||
settings = copy.deepcopy(_DEFAULT_CONFIG)
|
||||
settings = copy.deepcopy(DEFAULT_CONFIG)
|
||||
|
||||
self.settings = settings
|
||||
self._content = content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue