elections.cfg examples/elections.wsgi
by Toshio くらとみ
elections.cfg | 7 +++++++
examples/elections.wsgi | 6 ------
2 files changed, 7 insertions(+), 6 deletions(-)
New commits:
commit fea2fc590a1907119e3385f7a19fdec4999d151f
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Tue Sep 22 18:24:57 2009 -0700
Move config from the wsgi script into the config file.
diff --git a/elections.cfg b/elections.cfg
index 5705ee0..b344223 100644
--- a/elections.cfg
+++ b/elections.cfg
@@ -44,10 +44,17 @@ autoreload.package="elections"
# Auto-Reload after code modification
# autoreload.on = True
+server.log_to_screen = True
+
# Set to True if you'd like to abort execution if a controller gets an
# unexpected parameter. False by default
tg.strict_parameters = True
+server.webpath = '/elections'
+base_url_filter.on = True
+base_url_filter.base_url='http://localhost/elections'
+base_url_filter.use_x_forwarded_host = False
+
# LOGGING
# Logging configuration generally follows the style of the standard
# Python logging module configuration. Note that when specifying
diff --git a/examples/elections.wsgi b/examples/elections.wsgi
index a62b4d5..d6bf54a 100644
--- a/examples/elections.wsgi
+++ b/examples/elections.wsgi
@@ -20,12 +20,6 @@ from turbogears import startup
from fedora.tg.util import enable_csrf
turbogears.update_config(configfile="/etc/elections.cfg", modulename="elections.config")
-turbogears.config.update({'global': {'server.environment': 'production'}})
-turbogears.config.update({'global': {'autoreload.on': False}})
-turbogears.config.update({'global': {'server.log_to_screen': False}})
-turbogears.config.update({'global': {'server.webpath': '/elections'}})
-#turbogears.config.update({'global': {'base_url_filter.on': True}})
-#turbogears.config.update({'global': {'base_url_filter.base_url': 'http://localhost/elections'}})
startup.call_on_startup.append(enable_csrf)
14 years, 7 months
[SPAM] th such busin
by Victor
Ther this was jest or earnest, until Miss Royal's laugh relieved his
uncertainty. Katie laid her hand on the speaker's arm and shook it
lightly. "You told me I should be sure to enjoy it," she said. "Now,
what do you mean?" "Ah! but you would be queen," said Harwin, "queen in
your own right, a divine right of beauty that no one can resist." Katie
looked at him, disposed for a moment to be angry, but her love of
admiration could not resist the worship of his eyes, and the lips
prepared to pout curved into a smile not less bewitching that the
brightness of anger was still in her cheeks. Archdale and Waldo turned
indignant glances on the speaker, but it was manifestly absurd to resent
a speech that pleased the object of it, and that each secretly felt
would not have sounded ill if he had made it hims
14 years, 8 months
hold, and despa
by Chaudhry
Ty hath commanded that this man be led through the streets of Naples
with marks of infamy, and that he shall afterwards be committed to serve
in the g
14 years, 8 months