incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/2] git commit: [#6464] Enable voting on GC Trackers
Date Tue, 20 Aug 2013 18:21:45 GMT
[#6464] Enable voting on GC Trackers

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


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

Branch: refs/heads/cj/6464
Commit: b66c1b0b6a19b70392b323f2ecc82e867eae2440
Parents: ead70f5
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Tue Aug 20 18:21:23 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Tue Aug 20 18:21:23 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/google/tracker.py                    | 2 +-
 .../forgeimporters/tests/google/functional/test_tracker.py         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b66c1b0b/ForgeImporters/forgeimporters/google/tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/google/tracker.py b/ForgeImporters/forgeimporters/google/tracker.py
index 51391a2..49f052b 100644
--- a/ForgeImporters/forgeimporters/google/tracker.py
+++ b/ForgeImporters/forgeimporters/google/tracker.py
@@ -45,7 +45,7 @@ class GoogleCodeTrackerImporter(ToolImporter):
 
     def import_tool(self, project, user, project_name, mount_point=None,
             mount_label=None, **kw):
-        app = project.install_app('tickets', mount_point, mount_label)
+        app = project.install_app('tickets', mount_point, mount_label, EnableVoting=True)
         app.globals.open_status_names = 'New Accepted Started'
         app.globals.closed_status_names = 'Fixed Verified Invalid Duplicate WontFix Done'
         ThreadLocalORMSession.flush_all()

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b66c1b0b/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py b/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
index bf15cc2..b4f9a86 100644
--- a/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
+++ b/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
@@ -75,6 +75,7 @@ class TestGCTrackerImporter(TestCase):
         self.assertEqual(ticket.status, '')
         self.assertEqual(ticket.milestone, '')
         self.assertEqual(ticket.custom_fields, {})
+        assert c.app.config.options.get('EnableVoting')
 
     @without_module('html2text')
     def test_issue_basic_fields(self):


Mime
View raw message