allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [10/27] git commit: [#6752] ticket:459 fixed private field logic
Date Thu, 31 Oct 2013 18:41:25 GMT
[#6752] ticket:459 fixed private field logic


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

Branch: refs/heads/cj/6692
Commit: a99c07f4a4888e1ba1dd5120d77f58184270b674
Parents: 65d8902
Author: coldmind <sokandpal@yandex.ru>
Authored: Mon Oct 28 13:01:51 2013 +0200
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Wed Oct 30 14:35:04 2013 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/model/ticket.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a99c07f4/ForgeTracker/forgetracker/model/ticket.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/model/ticket.py b/ForgeTracker/forgetracker/model/ticket.py
index 36669a2..bec29a3 100644
--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -66,6 +66,7 @@ from allura.lib import utils
 from allura.lib import helpers as h
 from allura.lib.plugin import ImportIdConverter
 from allura.tasks import mail_tasks
+from paste.deploy.converters import asbool
 
 
 log = logging.getLogger(__name__)
@@ -332,10 +333,8 @@ class Globals(MappedClass):
             if user:
                 values['assigned_to_id'] = user._id
         private = post_data.get('private')
-        if private == 'True':
-            values['private'] = True
-        elif private == 'False':
-            values['private'] = False
+        if private:
+            values['private'] = asbool(private)
 
         custom_values = {}
         custom_fields = {}


Mime
View raw message