incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [14/38] git commit: [#6203] ticket:362 Notify user after update completed
Date Fri, 21 Jun 2013 21:34:26 GMT
[#6203] ticket:362 Notify user after update completed


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

Branch: refs/heads/cj/6272
Commit: 28cee9c7c649967b5975cb2b9dabd2f53e3d89a1
Parents: efe1b16
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Jun 7 08:43:00 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Mon Jun 17 17:19:06 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/28cee9c7/ForgeTracker/forgetracker/model/ticket.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/model/ticket.py b/ForgeTracker/forgetracker/model/ticket.py
index 4fbe170..707ae41 100644
--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -414,6 +414,10 @@ class Globals(MappedClass):
 
         c.app.globals.invalidate_bin_counts()
         ThreadLocalORMSession.flush_all()
+        app = '%s/%s' % (c.project.shortname, c.app.config.options.mount_point)
+        count = len(tickets)
+        text = 'Updated {} ticket{} in {}'.format(count, 's' if count != 1 else '', app)
+        Notification.post_user(c.user, None, 'flash', text=text)
 
     def filtered_by_subscription(self, tickets, project_id=None, app_config_id=None):
         p_id = project_id if project_id else c.project._id


Mime
View raw message