annotate farol/config.py @ 178:e46fb0027e52 tip

Added tag 1.1.1 for changeset ae584cfe6252
author Benoît Allard <benoit.allard@greenbone.net>
date Thu, 08 Jan 2015 14:37:57 +0100
parents 4219d6fb4c38
children
rev   line source
2
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
1 # -*- encoding: utf-8 -*-
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
2 # Description:
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
3 # Configuration Module
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
4 #
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
5 # Authors:
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
6 # BenoƮt Allard <benoit.allard@greenbone.net>
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
7 #
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
8 # Copyright:
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
9 # Copyright (C) 2014 Greenbone Networks GmbH
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
10 #
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
11 # This program is free software; you can redistribute it and/or
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
12 # modify it under the terms of the GNU General Public License
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
13 # as published by the Free Software Foundation; either version 2
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
14 # of the License, or (at your option) any later version.
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
15 #
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
16 # This program is distributed in the hope that it will be useful,
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
19 # GNU General Public License for more details.
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
20 #
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
21 # You should have received a copy of the GNU General Public License
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
22 # along with this program; if not, write to the Free Software
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
24
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
25 import os
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
26
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
27
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
28 class Config(object):
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
29 """ the default configuration """
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
30 DEBUG=True
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
31 SECRET_KEY=os.urandom(24)
12
4219d6fb4c38 Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents: 2
diff changeset
32 # CACHING='disabled'
2
fe1918b6e3e0 Add forgotten configuration module
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
33

http://farol.wald.intevation.org