allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#7351] convert export_controlled to bool before comparing to current value
Date Tue, 29 Apr 2014 22:11:54 GMT
Repository: allura
Updated Branches:
  refs/heads/db/7351 [created] cf1db7282


[#7351] convert export_controlled to bool before comparing to current value


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

Branch: refs/heads/db/7351
Commit: cf1db7282c9de8eef58bfb4738eb67a7dd526ad3
Parents: 068f66e
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Tue Apr 29 21:56:48 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue Apr 29 21:56:48 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/allura/blob/cf1db728/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 e889b29..07b27a5 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -445,12 +445,13 @@ class ProjectAdminController(BaseController):
             h.log_action(log, 'change project moved to url').info('')
             M.AuditLog.log('change project moved to url to %s', moved_to_url)
             c.project.moved_to_url = moved_to_url
+        export_controlled = asbool(export_controlled)
         if export_controlled != c.project.export_controlled:
             h.log_action(
                 log, 'change project export controlled status').info('')
             M.AuditLog.log(
                 'change project export controlled status to %s', export_controlled)
-            c.project.export_controlled = not not export_controlled
+            c.project.export_controlled = export_controlled
             if not export_controlled:
                 export_control_type = None
         if export_control_type != c.project.export_control_type:


Mime
View raw message