mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
remove WRITE_SELECTED
Implementation is buggy and unreliable. Therefore, it is better to remove the functionality until a robust implementation is added.
This commit is contained in:
parent
0c5d63c69e
commit
86d6898517
8 changed files with 8 additions and 103 deletions
|
|
@ -169,7 +169,6 @@ DEFAULT_CONFIG = {
|
|||
"GZIP_CACHE": True,
|
||||
"CHECK_MODIFIED_METHOD": "mtime",
|
||||
"LOAD_CONTENT_CACHE": False,
|
||||
"WRITE_SELECTED": [],
|
||||
"FORMATTED_FIELDS": ["summary"],
|
||||
"PORT": 8000,
|
||||
"BIND": "127.0.0.1",
|
||||
|
|
@ -557,6 +556,13 @@ def handle_deprecated_settings(settings):
|
|||
)
|
||||
settings[old] = settings[new]
|
||||
|
||||
# Warn if removed WRITE_SELECTED is present
|
||||
if "WRITE_SELECTED" in settings:
|
||||
logger.warning(
|
||||
"WRITE_SELECTED is present in settings but this functionality was removed. "
|
||||
"It will have no effect."
|
||||
)
|
||||
|
||||
return settings
|
||||
|
||||
|
||||
|
|
@ -585,12 +591,6 @@ def configure_settings(settings):
|
|||
else:
|
||||
raise Exception("Could not find the theme %s" % settings["THEME"])
|
||||
|
||||
# make paths selected for writing absolute if necessary
|
||||
settings["WRITE_SELECTED"] = [
|
||||
os.path.abspath(path)
|
||||
for path in settings.get("WRITE_SELECTED", DEFAULT_CONFIG["WRITE_SELECTED"])
|
||||
]
|
||||
|
||||
# standardize strings to lowercase strings
|
||||
for key in ["DEFAULT_LANG"]:
|
||||
if key in settings:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue