allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [1/4] git commit: [#6752] ticket:459 changed ticket text
Date Wed, 30 Oct 2013 14:35:29 GMT
Updated Branches:
  refs/heads/master a861a1570 -> ccf83fbdf


[#6752] ticket:459 changed ticket text


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

Branch: refs/heads/master
Commit: ccf83fbdf2fd716fb749287d04839d5ba22ee624
Parents: a99c07f
Author: coldmind <sokandpal@yandex.ru>
Authored: Tue Oct 29 14:47:43 2013 +0200
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Wed Oct 30 14:35:04 2013 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/model/ticket.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/ccf83fbd/ForgeTracker/forgetracker/model/ticket.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/model/ticket.py b/ForgeTracker/forgetracker/model/ticket.py
index bec29a3..c113504 100644
--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -359,6 +359,16 @@ class Globals(MappedClass):
                             get_label(k),
                             new_user.display_name,
                             old_user.display_name)
+                elif k == 'private':
+                    def private_text(val):
+                        if val:
+                            return 'Yes'
+                        else:
+                            return 'No'
+                    message += get_change_text(
+                        get_label(k),
+                        private_text(v),
+                        private_text(getattr(ticket, k)))
                 else:
                     message += get_change_text(
                         get_label(k),


Mime
View raw message