You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/04/15 19:40:24 UTC

allura git commit: restore some of DEFAULT

Repository: allura
Updated Branches:
  refs/heads/db/7870 0af94c3ad -> b4f7cabc7


restore some of DEFAULT


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/b4f7cabc
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/b4f7cabc
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/b4f7cabc

Branch: refs/heads/db/7870
Commit: b4f7cabc7db661576dce53d955f18f582f9016aa
Parents: 0af94c3
Author: Dave Brondsema <da...@brondsema.net>
Authored: Wed Apr 15 13:25:14 2015 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Wed Apr 15 13:25:14 2015 -0400

----------------------------------------------------------------------
 Allura/allura/config/middleware.py |  4 +--
 Allura/development.ini             | 44 ++++++++++++++++++---------------
 2 files changed, 26 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/b4f7cabc/Allura/allura/config/middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/config/middleware.py b/Allura/allura/config/middleware.py
index a8720e4..840a39c 100644
--- a/Allura/allura/config/middleware.py
+++ b/Allura/allura/config/middleware.py
@@ -155,7 +155,7 @@ def _make_core_app(root, global_conf, full_stack=True, **app_conf):
     # Setup resource manager, widget context SOP
     app = ew.WidgetMiddleware(
         app,
-        compress=not asbool(app_conf['debug']),
+        compress=not asbool(global_conf['debug']),
         # compress=True,
         script_name=app_conf.get('ew.script_name', '/_ew_resources/'),
         url_base=app_conf.get('ew.url_base', '/_ew_resources/'),
@@ -175,7 +175,7 @@ def _make_core_app(root, global_conf, full_stack=True, **app_conf):
         # don't use TG footer with extra CSS & images that take time to load
         tg.error.footer_html = '<!-- %s %s -->'
         app = tg.error.ErrorHandler(
-            app, app_conf, **config['pylons.errorware'])
+            app, global_conf, **config['pylons.errorware'])
 
         # Redirect some status codes to /error/document
         if asbool(config['debug']):

http://git-wip-us.apache.org/repos/asf/allura/blob/b4f7cabc/Allura/development.ini
----------------------------------------------------------------------
diff --git a/Allura/development.ini b/Allura/development.ini
index 0821bce..b878afd 100644
--- a/Allura/development.ini
+++ b/Allura/development.ini
@@ -34,6 +34,29 @@
 ; Then just use the new file name instead of development.ini for any paster commands you run.
 
 
+[DEFAULT]
+; this section is for a few settings that are shared with error handling middleware
+
+; WARNING: *THE LINE BELOW MUST BE CHANGED ON A PRODUCTION ENVIRONMENT*
+; Debug mode will enable the interactive debugging tool, allowing ANYONE to
+; execute malicious code after an exception is raised.
+debug = true
+; If you want to receive an email for every unhandled HTTP 500 error, set your email address here:
+;email_to = you@yourdomain.com
+error_email_from = paste@localhost
+
+; SMTP settings for outgoing mail
+smtp_tls = false
+smtp_ssl = false
+;smtp_user = some_user
+;smtp_password = some_password
+smtp_timeout = 10
+smtp_server = localhost
+smtp_port = 8826
+; Reply-To and From address often used in email notifications:
+forgemail.return_path = noreply@localhost
+
+
 ;
 ; Settings for `paster serve` command
 ;
@@ -42,6 +65,7 @@ use = egg:Paste#http
 host = 0.0.0.0
 port = 8080
 
+
 ;
 ; The main allura settings
 ;
@@ -49,11 +73,6 @@ port = 8080
 use = egg:Allura
 full_stack = true
 
-; WARNING: *THE LINE BELOW MUST BE CHANGED ON A PRODUCTION ENVIRONMENT*
-; Debug mode will enable the interactive debugging tool, allowing ANYONE to
-; execute malicious code after an exception is raised.
-debug = false
-
 ; Change this to your website's name
 site_name = Allura
 ; Change these to your website's domain
@@ -65,21 +84,6 @@ forgemail.url = http://localhost:8080
 ; This should be updated each time you deploy (or make significant changes, like new tools, new css)
 build_key=1276635823
 
-; If you want to receive an email for every unhandled HTTP 500 error, set your email address here:
-;email_to = you@yourdomain.com
-error_email_from = paste@localhost
-
-; SMTP settings for outgoing mail
-smtp_tls = false
-smtp_ssl = false
-;smtp_user = some_user
-;smtp_password = some_password
-smtp_timeout = 10
-smtp_server = localhost
-smtp_port = 8826
-; Reply-To and From address often used in email notifications:
-forgemail.return_path = noreply@localhost
-
 ; Used by Turbogears / Pylons in some cases.  Not particularly relevant for Allura.
 cache_dir = %(here)s/data