incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [17/50] git commit: ticket:411 bulk_export_enabled added to config
Date Wed, 28 Aug 2013 14:34:58 GMT
ticket:411 bulk_export_enabled added to config


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

Branch: refs/heads/tv/6526
Commit: 90077d5245e55ff2afb4e56658d212090c350ecd
Parents: 68ed96e
Author: Anton Kasyanov <mind1master@gmail.com>
Authored: Tue Aug 13 19:07:09 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Aug 22 20:04:45 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/90077d52/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 d1f98da..6031625 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -142,7 +142,8 @@ class AdminApp(Application):
                     SitemapEntry('Categorization', admin_url+'trove')
                 ]
         links.append(SitemapEntry('Tools', admin_url+'tools'))
-        links.append(SitemapEntry('Export', admin_url + 'export'))
+        if config.get('bulk_export_enabled', 'false') == '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/'))
         if not c.project.is_root and has_access(c.project, 'admin')():
@@ -635,6 +636,8 @@ class ProjectAdminController(BaseController):
 
     @expose('jinja:allura.ext.admin:templates/export.html')
     def export(self, tools=None):
+        if config.get('bulk_export_enabled', 'true') != 'true':
+            redirect('.')
         exportable_tools = AdminApp.exportable_tools_for(c.project)
         if request.method == 'POST':
             if not tools:


Mime
View raw message