|
a |
|
b/ForgeWiki/test.ini |
|
|
1 |
#
|
|
|
2 |
# pyforge - TurboGears 2 testing environment configuration
|
|
|
3 |
#
|
|
|
4 |
# The %(here)s variable will be replaced with the parent directory of this file
|
|
|
5 |
#
|
|
|
6 |
[DEFAULT]
|
|
|
7 |
debug = true
|
|
|
8 |
# Uncomment and replace with the address which should receive any error reports
|
|
|
9 |
# email_to = you@yourdomain.com
|
|
|
10 |
smtp_server = localhost
|
|
|
11 |
error_email_from = paste@localhost
|
|
|
12 |
|
|
|
13 |
[server:main]
|
|
|
14 |
use = egg:Paste#http
|
|
|
15 |
host = 0.0.0.0
|
|
|
16 |
port = 5000
|
|
|
17 |
|
|
|
18 |
[app:main]
|
|
|
19 |
use = egg:pyforge#plugin_test
|
|
|
20 |
full_stack = true
|
|
|
21 |
|
|
|
22 |
cache_dir = %(here)s/data
|
|
|
23 |
beaker.session.key = pyforge
|
|
|
24 |
beaker.session.type = cookie
|
|
|
25 |
beaker.session.secret = 61ece7db-ba8d-49fe-a923-ab444741708c
|
|
|
26 |
beaker.session.validate_key = 714bfe3612c42390726f
|
|
|
27 |
|
|
|
28 |
# Ming setup
|
|
|
29 |
ming.main.master = mongo://127.0.0.1:27017/pyforge:test
|
|
|
30 |
|
|
|
31 |
sqlalchemy.url = sqlite:///%(here)s/devdata.db
|
|
|
32 |
#echo shouldn't be used together with the logging module.
|
|
|
33 |
sqlalchemy.echo = false
|
|
|
34 |
sqlalchemy.echo_pool = false
|
|
|
35 |
sqlalchemy.pool_recycle = 3600
|
|
|
36 |
templating.mako.reloadfromdisk = true
|
|
|
37 |
|
|
|
38 |
[loggers]
|
|
|
39 |
keys = root, pyforge, sqlalchemy
|
|
|
40 |
|
|
|
41 |
[handlers]
|
|
|
42 |
keys = console
|
|
|
43 |
|
|
|
44 |
[formatters]
|
|
|
45 |
keys = generic
|
|
|
46 |
|
|
|
47 |
# If you create additional loggers, add them as a key to [loggers]
|
|
|
48 |
[logger_root]
|
|
|
49 |
level = INFO
|
|
|
50 |
handlers = console
|
|
|
51 |
|
|
|
52 |
[logger_pyforge]
|
|
|
53 |
level = DEBUG
|
|
|
54 |
handlers =
|
|
|
55 |
qualname = pyforge
|
|
|
56 |
|
|
|
57 |
[logger_sqlalchemy]
|
|
|
58 |
level = INFO
|
|
|
59 |
handlers =
|
|
|
60 |
qualname = sqlalchemy.engine
|
|
|
61 |
# "level = INFO" logs SQL queries.
|
|
|
62 |
# "level = DEBUG" logs SQL queries and results.
|
|
|
63 |
# "level = WARN" logs neither. (Recommended for production systems.)
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
# If you create additional handlers, add them as a key to [handlers]
|
|
|
67 |
[handler_console]
|
|
|
68 |
class = StreamHandler
|
|
|
69 |
args = (sys.stderr,)
|
|
|
70 |
level = NOTSET
|
|
|
71 |
formatter = generic
|
|
|
72 |
|
|
|
73 |
# If you create additional formatters, add them as a key to [formatters]
|
|
|
74 |
[formatter_generic]
|
|
|
75 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
|
|
|
76 |
datefmt = %H:%M:%S
|
|
|
77 |
|