Mercurial > libervia-website
comparison pages/documentation/page_meta.py @ 9:f47d6ba74a26
pages (documentation): update following renaming
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 23 Apr 2021 11:01:24 +0200 |
parents | 9ce41ef66dfa |
children | 5fd933e238bb |
comparison
equal
deleted
inserted
replaced
8:dc880664a8ec | 9:f47d6ba74a26 |
---|---|
18 template_data = request.template_data | 18 template_data = request.template_data |
19 | 19 |
20 if allowed_docs is None: | 20 if allowed_docs is None: |
21 allowed_docs = sorted(self.getConfig("sub_docs_dict", {}).keys()) | 21 allowed_docs = sorted(self.getConfig("sub_docs_dict", {}).keys()) |
22 try: | 22 try: |
23 allowed_docs.remove('sat') | 23 allowed_docs.remove('backend') |
24 except KeyError: | 24 except KeyError: |
25 log.error("sat doc not available") | 25 log.error("backend doc not available") |
26 else: | 26 else: |
27 allowed_docs.insert(0, "sat") | 27 allowed_docs.insert(0, "backend") |
28 try: | 28 try: |
29 doc_name = self.nextPath(request) | 29 doc_name = self.nextPath(request) |
30 except IndexError: | 30 except IndexError: |
31 doc_name = 'sat' | 31 doc_name = 'backend' |
32 else: | 32 else: |
33 if doc_name not in allowed_docs: | 33 if doc_name not in allowed_docs: |
34 log.warning(_("unknown doc name: {doc_name}").format(doc_name=doc_name)) | 34 log.warning(_("unknown doc name: {doc_name}").format(doc_name=doc_name)) |
35 doc_name = 'sat' | 35 doc_name = 'backend' |
36 template_data['doc_name'] = doc_name | 36 template_data['doc_name'] = doc_name |
37 template_data['all_docs'] = allowed_docs | 37 template_data['all_docs'] = allowed_docs |