|
@@
-1,116
+1,116
b''
|
|
1
|
########################################################################
|
|
1
|
########################################################################
|
|
2
|
##
|
|
2
|
##
|
|
3
|
## pylons_app - Pylons development environment configuration
|
|
3
|
## pylons_app - Pylons development environment configuration
|
|
4
|
##
|
|
4
|
##
|
|
5
|
## The %(here)s variable will be replaced with the parent directory of this file
|
|
5
|
## The %(here)s variable will be replaced with the parent directory of this file
|
|
6
|
##
|
|
6
|
##
|
|
7
|
[DEFAULT]
|
|
7
|
[DEFAULT]
|
|
8
|
debug = true
|
|
8
|
debug = true
|
|
9
|
## Uncomment and replace with the address which should receive any error reports
|
|
9
|
## Uncomment and replace with the address which should receive any error reports
|
|
10
|
email_to = marcin.kuzminski@etelko.pl
|
|
10
|
email_to = marcin.kuzminski@etelko.pl
|
|
11
|
smtp_server = localhost
|
|
11
|
smtp_server = localhost
|
|
12
|
error_email_from = paste_error@localhost
|
|
12
|
error_email_from = paste_error@localhost
|
|
13
|
|
|
13
|
|
|
14
|
[server:main]
|
|
14
|
[server:main]
|
|
15
|
use = egg:Paste#http
|
|
15
|
use = egg:Paste#http
|
|
16
|
host = 127.0.0.1
|
|
16
|
host = 127.0.0.1
|
|
17
|
port = 5000
|
|
17
|
port = 5000
|
|
18
|
|
|
18
|
|
|
19
|
[app:main]
|
|
19
|
[app:main]
|
|
20
|
use = egg:pylons_app
|
|
20
|
use = egg:pylons_app
|
|
21
|
full_stack = true
|
|
21
|
full_stack = true
|
|
22
|
static_files = false
|
|
22
|
static_files = false
|
|
23
|
##default lang
|
|
23
|
##default lang
|
|
24
|
lang=en
|
|
24
|
lang=en
|
|
25
|
|
|
25
|
|
|
26
|
cache_dir = %(here)s/data
|
|
26
|
cache_dir = %(here)s/data
|
|
27
|
beaker.session.key = pylons_app
|
|
27
|
beaker.session.key = pylons_app
|
|
28
|
beaker.session.secret = #@^^F&VWUDCT%@$#WR^@&*IWEKF
|
|
28
|
beaker.session.secret = #@^^F&VWUDCT%@$#WR^@&*IWEKF
|
|
29
|
beaker.session.timeout = 3600
|
|
29
|
beaker.session.timeout = 3600
|
|
30
|
|
|
30
|
|
|
31
|
##auto save the session to not to use .save()
|
|
31
|
##auto save the session to not to use .save()
|
|
32
|
beaker.session.auto = True
|
|
32
|
beaker.session.auto = True
|
|
33
|
|
|
33
|
|
|
34
|
##true exire at browser close
|
|
34
|
##true exire at browser close
|
|
35
|
#beaker.session.cookie_expires = 3600
|
|
35
|
#beaker.session.cookie_expires = 3600
|
|
36
|
|
|
36
|
|
|
37
|
## If you'd like to fine-tune the individual locations of the cache data dirs
|
|
37
|
## If you'd like to fine-tune the individual locations of the cache data dirs
|
|
38
|
## for the Cache data, or the Session saves, un-comment the desired settings
|
|
38
|
## for the Cache data, or the Session saves, un-comment the desired settings
|
|
39
|
## here:
|
|
39
|
## here:
|
|
40
|
#beaker.cache.data_dir = %(here)s/data/cache
|
|
40
|
#beaker.cache.data_dir = %(here)s/data/cache
|
|
41
|
#beaker.session.data_dir = %(here)s/data/sessions
|
|
41
|
#beaker.session.data_dir = %(here)s/data/sessions
|
|
42
|
|
|
42
|
|
|
43
|
|
|
43
|
|
|
44
|
##Type of storage used for the session, current types are
|
|
44
|
##Type of storage used for the session, current types are
|
|
45
|
##“dbm”, “file”, “memcached”, “database”, and “memory”.
|
|
45
|
##“dbm”, “file”, “memcached”, “database”, and “memory”.
|
|
46
|
##The storage uses the Container API that is also used by the cache system.
|
|
46
|
##The storage uses the Container API that is also used by the cache system.
|
|
47
|
beaker.session.type = memory
|
|
47
|
beaker.session.type = memory
|
|
48
|
|
|
48
|
|
|
49
|
##if db or memcached is used
|
|
49
|
##if db or memcached is used
|
|
50
|
##you have to use
|
|
50
|
##you have to use
|
|
51
|
#beaker.session.url =
|
|
51
|
#beaker.session.url =
|
|
52
|
#beaker.session.table_name =
|
|
52
|
#beaker.session.table_name =
|
|
53
|
|
|
53
|
|
|
54
|
## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
|
|
54
|
## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
|
|
55
|
## Debug mode will enable the interactive debugging tool, allowing ANYONE to
|
|
55
|
## Debug mode will enable the interactive debugging tool, allowing ANYONE to
|
|
56
|
## execute malicious code after an exception is raised.
|
|
56
|
## execute malicious code after an exception is raised.
|
|
57
|
#set debug = false
|
|
57
|
#set debug = false
|
|
58
|
|
|
58
|
|
|
59
|
##dozer logging
|
|
59
|
##dozer logging
|
|
60
|
#logview.sqlalchemy = #faa
|
|
60
|
#logview.sqlalchemy = #faa
|
|
61
|
#logview.pylons.templating = #bfb
|
|
61
|
#logview.pylons.templating = #bfb
|
|
62
|
#logview.sample_app.lib = #aaa
|
|
62
|
#logview.sample_app.lib = #aaa
|
|
63
|
|
|
63
|
|
|
64
|
# Logging configuration
|
|
64
|
# Logging configuration
|
|
65
|
[loggers]
|
|
65
|
[loggers]
|
|
66
|
keys = root, routes, pylons_app, sqlalchemy
|
|
66
|
keys = root, routes, pylons_app, sqlalchemy
|
|
67
|
|
|
67
|
|
|
68
|
[handlers]
|
|
68
|
[handlers]
|
|
69
|
keys = console,file_handler
|
|
69
|
keys = console,file_handler
|
|
70
|
|
|
70
|
|
|
71
|
[formatters]
|
|
71
|
[formatters]
|
|
72
|
keys = generic
|
|
72
|
keys = generic
|
|
73
|
|
|
73
|
|
|
74
|
## LOGGERS ##
|
|
74
|
## LOGGERS ##
|
|
75
|
[logger_root]
|
|
75
|
[logger_root]
|
|
76
|
level = DEBUG
|
|
76
|
level = DEBUG
|
|
77
|
handlers = console, file_handler
|
|
77
|
handlers = console, file_handler
|
|
78
|
|
|
78
|
|
|
79
|
[logger_routes]
|
|
79
|
[logger_routes]
|
|
80
|
level = INFO
|
|
80
|
level = DEBUG
|
|
81
|
handlers = console
|
|
81
|
handlers = console
|
|
82
|
qualname = routes.middleware
|
|
82
|
qualname = routes.middleware
|
|
83
|
# "level = DEBUG" logs the route matched and routing variables.
|
|
83
|
# "level = DEBUG" logs the route matched and routing variables.
|
|
84
|
|
|
84
|
|
|
85
|
[logger_pylons_app]
|
|
85
|
[logger_pylons_app]
|
|
86
|
level = DEBUG
|
|
86
|
level = DEBUG
|
|
87
|
handlers = console,file_handler
|
|
87
|
handlers = console,file_handler
|
|
88
|
qualname = pylons_app
|
|
88
|
qualname = pylons_app
|
|
89
|
|
|
89
|
|
|
90
|
[logger_sqlalchemy]
|
|
90
|
[logger_sqlalchemy]
|
|
91
|
level = DEBUG
|
|
91
|
level = DEBUG
|
|
92
|
handlers =
|
|
92
|
handlers =
|
|
93
|
qualname = sqlalchemy.pool
|
|
93
|
qualname = sqlalchemy.pool
|
|
94
|
propagate = 0
|
|
94
|
propagate = 0
|
|
95
|
|
|
95
|
|
|
96
|
|
|
96
|
|
|
97
|
## HANDLERS ##
|
|
97
|
## HANDLERS ##
|
|
98
|
|
|
98
|
|
|
99
|
[handler_console]
|
|
99
|
[handler_console]
|
|
100
|
class = StreamHandler
|
|
100
|
class = StreamHandler
|
|
101
|
args = (sys.stderr,)
|
|
101
|
args = (sys.stderr,)
|
|
102
|
level = NOTSET
|
|
102
|
level = NOTSET
|
|
103
|
formatter = generic
|
|
103
|
formatter = generic
|
|
104
|
|
|
104
|
|
|
105
|
[handler_file_handler]
|
|
105
|
[handler_file_handler]
|
|
106
|
class = FileHandler
|
|
106
|
class = FileHandler
|
|
107
|
args = ('./pylons_app.log','a')
|
|
107
|
args = ('./pylons_app.log','a')
|
|
108
|
level = NOTSET
|
|
108
|
level = NOTSET
|
|
109
|
formatter = generic
|
|
109
|
formatter = generic
|
|
110
|
|
|
110
|
|
|
111
|
## FORMATTERS ##
|
|
111
|
## FORMATTERS ##
|
|
112
|
|
|
112
|
|
|
113
|
[formatter_generic]
|
|
113
|
[formatter_generic]
|
|
114
|
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
|
|
114
|
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
|
|
115
|
datefmt = %H:%M:%S
|
|
115
|
datefmt = %H:%M:%S
|
|
116
|
|
|
116
|
|