Commit 010ee386 authored by Matthieu Boileau's avatar Matthieu Boileau

Remove spip_file from config.yaml

parent d7b5566b
......@@ -84,9 +84,3 @@ categories:
skip:
- 10 # Formations organisées par les méso-centres
- 38 # 2. Offres d'emploi
#spip_file:
# rubriques: spip_rubriques_clean.yml
# articles: spip_articles_clean.yml
# documents: spip_documents.yml
# authors: spip_auteurs_clean.yml
# authors_links: spip_auteurs_liens.yml
......@@ -396,12 +396,6 @@ class Website:
DEFAULT_AUTHOR = "Webmaster"
ATTACHMENTS_PREFIX = "attachments/spip/"
SPIPDIR = "spip_yml"
RUBRIQUES_FILENAME = os.path.join(SPIPDIR, "spip_rubriques_clean.yml")
ARTICLES_FILENAME = os.path.join(SPIPDIR, "spip_articles_clean.yml")
BREVES_FILENAME = os.path.join(SPIPDIR, "spip_breves_clean.yml")
DOCUMENTS_FILENAME = os.path.join(SPIPDIR, "spip_documents.yml")
AUTHORS_FILENAME = os.path.join(SPIPDIR, "spip_auteurs_clean.yml")
AUTHORS_LINKS_FILENAME = os.path.join(SPIPDIR, "spip_auteurs_liens.yml")
@staticmethod
def _load_and_clean_yaml(filename):
......@@ -433,12 +427,12 @@ class Website:
self.default_author = cfg.get('default_author', self.DEFAULT_AUTHOR)
spip_file = cfg.get('spip_file', {})
self.attachments_prefix = spip_file.get('attachments_prefix', self.ATTACHMENTS_PREFIX)
self.rubriques_filename = spip_file.get('rubriques', self.RUBRIQUES_FILENAME)
self.articles_filename = spip_file.get('articles', self.ARTICLES_FILENAME)
self.breves_filename = spip_file.get('breves', self.BREVES_FILENAME)
self.documents_filename = spip_file.get('documents', self.DOCUMENTS_FILENAME)
self.authors_filename = spip_file.get('authors', self.AUTHORS_FILENAME)
self.authors_links_filename = spip_file.get('authors_links', self.AUTHORS_LINKS_FILENAME)
self.rubriques_filename = os.path.join(self.SPIPDIR, "spip_rubriques_clean.yml")
self.articles_filename = os.path.join(self.SPIPDIR, "spip_articles_clean.yml")
self.breves_filename = os.path.join(self.SPIPDIR, "spip_breves_clean.yml")
self.documents_filename = os.path.join(self.SPIPDIR, "spip_documents.yml")
self.authors_filename = os.path.join(self.SPIPDIR, "spip_auteurs_clean.yml")
self.authors_links_filename = os.path.join(self.SPIPDIR, "spip_auteurs_liens.yml")
self.categories = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment