Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3233104F0 for ; Fri, 21 Jun 2013 21:34:14 +0000 (UTC) Received: (qmail 88738 invoked by uid 500); 21 Jun 2013 21:34:14 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 88657 invoked by uid 500); 21 Jun 2013 21:34:14 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 88409 invoked by uid 99); 21 Jun 2013 21:34:14 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2013 21:34:14 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3FF1482D376; Fri, 21 Jun 2013 21:34:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org Date: Fri, 21 Jun 2013 21:34:26 -0000 Message-Id: <44aef4ad5dad44fd8e3ff87df1a3cd6d@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [14/38] git commit: [#6203] ticket:362 Notify user after update completed [#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 Authored: Fri Jun 7 08:43:00 2013 +0000 Committer: Cory Johns 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