incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [45/50] git commit: [#3154] ticket:411 config bool refactor
Date Wed, 21 Aug 2013 15:27:27 GMT
[#3154] ticket:411 config bool refactor


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

Branch: refs/heads/db/3154b
Commit: b098e1ea89023ebd528403ce303011cdf8c95da2
Parents: 7be9277
Author: Anton Kasyanov <mind1master@gmail.com>
Authored: Thu Aug 15 16:39:59 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Aug 21 15:25:59 2013 +0000

----------------------------------------------------------------------
 Allura/allura/ext/admin/admin_main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b098e1ea/Allura/allura/ext/admin/admin_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index 9cc0f28..f763258 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -142,7 +142,7 @@ class AdminApp(Application):
                     SitemapEntry('Categorization', admin_url+'trove')
                 ]
         links.append(SitemapEntry('Tools', admin_url+'tools'))
-        if config.get('bulk_export_enabled', 'true') == 'true':
+        if asbool(config.get('bulk_export_enabled', True)):
             links.append(SitemapEntry('Export', admin_url + 'export'))
         if c.project.is_root and has_access(c.project, 'admin')():
             links.append(SitemapEntry('User Permissions', admin_url+'groups/'))
@@ -636,7 +636,7 @@ class ProjectAdminController(BaseController):
 
     @expose('jinja:allura.ext.admin:templates/export.html')
     def export(self, tools=None):
-        if config.get('bulk_export_enabled', 'true') != 'true':
+        if not asbool(config.get('bulk_export_enabled', True)):
             redirect('.')
         exportable_tools = AdminApp.exportable_tools_for(c.project)
         if request.method == 'POST':


Mime
View raw message