allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [42/50] git commit: [#3154] ticket:411 config bool refactor
Date Wed, 21 Aug 2013 20:12:58 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/d32892c8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/d32892c8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/d32892c8

Branch: refs/heads/db/3154b
Commit: d32892c85ca28bd7e99f804ec731a28cf3898324
Parents: b0ad11b
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 18:12:28 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/d32892c8/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