Mercurial > kallithea
annotate rhodecode/config/conf.py @ 4147:1c8f818787b3 rhodecode-2.2.5-gpl
old style: show the full link box on summary page - no overlap or truncation
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 02 Jul 2014 19:03:23 -0400 |
parents | ffd45b185016 |
children | 7e5f8c12a3fc |
rev | line source |
---|---|
2109 | 1 # -*- coding: utf-8 -*- |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
2 # This program is free software: you can redistribute it and/or modify |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
3 # it under the terms of the GNU General Public License as published by |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
4 # the Free Software Foundation, either version 3 of the License, or |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
5 # (at your option) any later version. |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
6 # |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
7 # This program is distributed in the hope that it will be useful, |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
10 # GNU General Public License for more details. |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
11 # |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
12 # You should have received a copy of the GNU General Public License |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
13 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
2109 | 14 """ |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
15 rhodecode.config.conf |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
16 ~~~~~~~~~~~~~~~~~~~~~ |
2109 | 17 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
18 Various config settings for RhodeCode |
2109 | 19 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
20 :created_on: Mar 7, 2012 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
21 :author: marcink |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
22 :copyright: (c) 2013 RhodeCode GmbH. |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
2109
diff
changeset
|
23 :license: GPLv3, see LICENSE for more details. |
2109 | 24 """ |
25 from rhodecode import EXTENSIONS | |
26 | |
27 from rhodecode.lib.utils2 import __get_lem | |
28 | |
29 | |
30 # language map is also used by whoosh indexer, which for those specified | |
31 # extensions will index it's content | |
32 LANGUAGES_EXTENSIONS_MAP = __get_lem() | |
33 | |
34 #============================================================================== | |
35 # WHOOSH INDEX EXTENSIONS | |
36 #============================================================================== | |
37 # EXTENSIONS WE WANT TO INDEX CONTENT OFF USING WHOOSH | |
38 INDEX_EXTENSIONS = LANGUAGES_EXTENSIONS_MAP.keys() | |
39 | |
40 # list of readme files to search in file tree and display in summary | |
41 # attached weights defines the search order lower is first | |
42 ALL_READMES = [ | |
43 ('readme', 0), ('README', 0), ('Readme', 0), | |
44 ('doc/readme', 1), ('doc/README', 1), ('doc/Readme', 1), | |
45 ('Docs/readme', 2), ('Docs/README', 2), ('Docs/Readme', 2), | |
46 ('DOCS/readme', 2), ('DOCS/README', 2), ('DOCS/Readme', 2), | |
47 ('docs/readme', 2), ('docs/README', 2), ('docs/Readme', 2), | |
48 ] | |
49 | |
50 # extension together with weights to search lower is first | |
51 RST_EXTS = [ | |
52 ('', 0), ('.rst', 1), ('.rest', 1), | |
53 ('.RST', 2), ('.REST', 2), | |
54 ('.txt', 3), ('.TXT', 3) | |
55 ] | |
56 | |
57 MARKDOWN_EXTS = [ | |
58 ('.md', 1), ('.MD', 1), | |
59 ('.mkdn', 2), ('.MKDN', 2), | |
60 ('.mdown', 3), ('.MDOWN', 3), | |
61 ('.markdown', 4), ('.MARKDOWN', 4) | |
62 ] | |
63 | |
64 PLAIN_EXTS = [('.text', 2), ('.TEXT', 2)] | |
65 | |
66 ALL_EXTS = MARKDOWN_EXTS + RST_EXTS + PLAIN_EXTS | |
67 | |
68 DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S" | |
69 | |
70 DATE_FORMAT = "%Y-%m-%d" |