| 1 |
# Copyright 2004 Ian Leitch
|
| 2 |
# Copyright 1999-2005 Gentoo Foundation
|
| 3 |
# Distributed under the terms of the GNU General Public License v2
|
| 4 |
#
|
| 5 |
|
| 6 |
from harmonious import harm
|
| 7 |
|
| 8 |
__revision__ = '$Id$'
|
| 9 |
__version__ = "0.3"
|
| 10 |
__modulename__ = "config"
|
| 11 |
|
| 12 |
db = {
|
| 13 |
"db_type": "mysql",
|
| 14 |
"host": "localhost",
|
| 15 |
"port": "",
|
| 16 |
"user": "glsrusr",
|
| 17 |
"passwd": "glsrusr",
|
| 18 |
"db": "glsr",
|
| 19 |
"prefix": "glsr_"
|
| 20 |
}
|
| 21 |
|
| 22 |
theme = "gentoo"
|
| 23 |
contact = "port001@gentoo.org"
|
| 24 |
|
| 25 |
root = "/usr/local/share/glsr/%s/" % harm.config.server['Host']
|
| 26 |
url = "http://%s/glsr/" % harm.config.server['Host']
|
| 27 |
|
| 28 |
# FIXME: The next three settings should be set in the web UI.
|
| 29 |
who_is_online_offset = 300
|
| 30 |
|
| 31 |
# Should all scripts being submitted require approval by an admin?
|
| 32 |
require_approval = False
|
| 33 |
|
| 34 |
# The number of error messages to display in the admin area.
|
| 35 |
error_report_list_length = 5
|
| 36 |
|
| 37 |
|
| 38 |
template_loc = root + "templates/" + theme
|
| 39 |
template_cache = root + "templates/tmpl_cache/"
|
| 40 |
|
| 41 |
debug = True
|
| 42 |
|
| 43 |
logging = True
|
| 44 |
error_reporting = True
|
| 45 |
logging_loc = root + "log/glsr/"
|
| 46 |
logfile = "glsr.log"
|
| 47 |
error_logfile = "error_reports.log"
|
| 48 |
|
| 49 |
cookie_domain = "scriptstest.gentoo.org"
|
| 50 |
cookie_path = "/"
|
| 51 |
cookie_secure = False
|
| 52 |
cookie_secret = "T0mm3yT4n5"
|
| 53 |
|
| 54 |
session_timeout = 259200 # Time in seconds (1 day = 86400)
|
| 55 |
|
| 56 |
# Time in seconds we should wait for each thread
|
| 57 |
threads_timeout = 3
|