comparison test.ini @ 473:6b934c9607e7 celery

Improved testing scenarios. Made test env creator Fixed hg_model error message some other tweeks and fixes Models fixe for uniq email, and removed some extra not needed imports from model main module
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 13 Sep 2010 01:23:58 +0200
parents tests.ini@91292686c1ed
children 1e757ac98988
comparison
equal deleted inserted replaced
472:91292686c1ed 473:6b934c9607e7
1 ################################################################################
2 ################################################################################
3 # hg-app - Pylons environment configuration #
4 # #
5 # The %(here)s variable will be replaced with the parent directory of this file#
6 ################################################################################
7
8 [DEFAULT]
9 debug = true
10 ################################################################################
11 ## Uncomment and replace with the address which should receive ##
12 ## any error reports after application crash ##
13 ## Additionally those settings will be used by hg-app mailing system ##
14 ################################################################################
15 #email_to = admin@localhost
16 #error_email_from = paste_error@localhost
17 #app_email_from = hg-app-noreply@localhost
18 #error_message =
19
20 #smtp_server = mail.server.com
21 #smtp_username =
22 #smtp_password =
23 #smtp_port =
24 #smtp_use_tls = false
25
26 [server:main]
27 ##nr of threads to spawn
28 threadpool_workers = 5
29
30 ##max request before thread respawn
31 threadpool_max_requests = 2
32
33 ##option to use threads of process
34 use_threadpool = true
35
36 use = egg:Paste#http
37 host = 127.0.0.1
38 port = 5000
39
40 [app:main]
41 use = egg:pylons_app
42 full_stack = true
43 static_files = true
44 lang=en
45 cache_dir = %(here)s/data
46
47 ####################################
48 ### BEAKER CACHE ####
49 ####################################
50 beaker.cache.data_dir=/%(here)s/data/cache/data
51 beaker.cache.lock_dir=/%(here)s/data/cache/lock
52 beaker.cache.regions=super_short_term,short_term,long_term
53 beaker.cache.long_term.type=memory
54 beaker.cache.long_term.expire=36000
55 beaker.cache.short_term.type=memory
56 beaker.cache.short_term.expire=60
57 beaker.cache.super_short_term.type=memory
58 beaker.cache.super_short_term.expire=10
59
60 ####################################
61 ### BEAKER SESSION ####
62 ####################################
63 ## Type of storage used for the session, current types are
64 ## "dbm", "file", "memcached", "database", and "memory".
65 ## The storage uses the Container API
66 ##that is also used by the cache system.
67 beaker.session.type = file
68
69 beaker.session.key = hg-app
70 beaker.session.secret = g654dcno0-9873jhgfreyu
71 beaker.session.timeout = 36000
72
73 ##auto save the session to not to use .save()
74 beaker.session.auto = False
75
76 ##true exire at browser close
77 #beaker.session.cookie_expires = 3600
78
79
80 ################################################################################
81 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
82 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
83 ## execute malicious code after an exception is raised. ##
84 ################################################################################
85 #set debug = false
86
87 ##################################
88 ### LOGVIEW CONFIG ###
89 ##################################
90 logview.sqlalchemy = #faa
91 logview.pylons.templating = #bfb
92 logview.pylons.util = #eee
93
94 #########################################################
95 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
96 #########################################################
97 sqlalchemy.db1.url = sqlite:///%(here)s/test.db
98 #sqlalchemy.db1.echo = False
99 #sqlalchemy.db1.pool_recycle = 3600
100 sqlalchemy.convert_unicode = true
101
102 ################################
103 ### LOGGING CONFIGURATION ####
104 ################################
105 [loggers]
106 keys = root, routes, pylons_app, sqlalchemy
107
108 [handlers]
109 keys = console
110
111 [formatters]
112 keys = generic,color_formatter
113
114 #############
115 ## LOGGERS ##
116 #############
117 [logger_root]
118 level = ERROR
119 handlers = console
120
121 [logger_routes]
122 level = ERROR
123 handlers = console
124 qualname = routes.middleware
125 # "level = DEBUG" logs the route matched and routing variables.
126
127 [logger_pylons_app]
128 level = ERROR
129 handlers = console
130 qualname = pylons_app
131 propagate = 0
132
133 [logger_sqlalchemy]
134 level = ERROR
135 handlers = console
136 qualname = sqlalchemy.engine
137 propagate = 0
138
139 ##############
140 ## HANDLERS ##
141 ##############
142
143 [handler_console]
144 class = StreamHandler
145 args = (sys.stderr,)
146 level = NOTSET
147 formatter = color_formatter
148
149 ################
150 ## FORMATTERS ##
151 ################
152
153 [formatter_generic]
154 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
155 datefmt = %Y-%m-%d %H:%M:%S
156
157 [formatter_color_formatter]
158 class=pylons_app.lib.colored_formatter.ColorFormatter
159 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
160 datefmt = %Y-%m-%d %H:%M:%S