Mercurial > kallithea
comparison rhodecode/config/conf.py @ 2109:8ecfed1d8f8b beta
utils/conf
- created temporary utils2
- made config.conf for storing some configurations
- fixed some dependency import problems
- code cleanup
- rc-extensions now properly work for celery
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 07 Mar 2012 02:18:22 +0200 |
parents | |
children | ffd45b185016 |
comparison
equal
deleted
inserted
replaced
2108:9e377342802c | 2109:8ecfed1d8f8b |
---|---|
1 # -*- coding: utf-8 -*- | |
2 """ | |
3 package.rhodecode.config.conf | |
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 | |
6 Various config settings for RhodeCode | |
7 | |
8 :created_on: Mar 7, 2012 | |
9 :author: marcink | |
10 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> | |
11 :license: <name>, see LICENSE_FILE for more details. | |
12 """ | |
13 from rhodecode import EXTENSIONS | |
14 | |
15 from rhodecode.lib.utils2 import __get_lem | |
16 | |
17 | |
18 # language map is also used by whoosh indexer, which for those specified | |
19 # extensions will index it's content | |
20 LANGUAGES_EXTENSIONS_MAP = __get_lem() | |
21 | |
22 #============================================================================== | |
23 # WHOOSH INDEX EXTENSIONS | |
24 #============================================================================== | |
25 # EXTENSIONS WE WANT TO INDEX CONTENT OFF USING WHOOSH | |
26 INDEX_EXTENSIONS = LANGUAGES_EXTENSIONS_MAP.keys() | |
27 | |
28 # list of readme files to search in file tree and display in summary | |
29 # attached weights defines the search order lower is first | |
30 ALL_READMES = [ | |
31 ('readme', 0), ('README', 0), ('Readme', 0), | |
32 ('doc/readme', 1), ('doc/README', 1), ('doc/Readme', 1), | |
33 ('Docs/readme', 2), ('Docs/README', 2), ('Docs/Readme', 2), | |
34 ('DOCS/readme', 2), ('DOCS/README', 2), ('DOCS/Readme', 2), | |
35 ('docs/readme', 2), ('docs/README', 2), ('docs/Readme', 2), | |
36 ] | |
37 | |
38 # extension together with weights to search lower is first | |
39 RST_EXTS = [ | |
40 ('', 0), ('.rst', 1), ('.rest', 1), | |
41 ('.RST', 2), ('.REST', 2), | |
42 ('.txt', 3), ('.TXT', 3) | |
43 ] | |
44 | |
45 MARKDOWN_EXTS = [ | |
46 ('.md', 1), ('.MD', 1), | |
47 ('.mkdn', 2), ('.MKDN', 2), | |
48 ('.mdown', 3), ('.MDOWN', 3), | |
49 ('.markdown', 4), ('.MARKDOWN', 4) | |
50 ] | |
51 | |
52 PLAIN_EXTS = [('.text', 2), ('.TEXT', 2)] | |
53 | |
54 ALL_EXTS = MARKDOWN_EXTS + RST_EXTS + PLAIN_EXTS | |
55 | |
56 DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S" | |
57 | |
58 DATE_FORMAT = "%Y-%m-%d" |