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:
W. Trevor King 2013-03-24 08:38:19 -04:00
commit e9dc1dd478
6 changed files with 105 additions and 108 deletions

View file

@ -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