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 D4DA21020F for ; Tue, 16 Jul 2013 20:17:10 +0000 (UTC) Received: (qmail 38517 invoked by uid 500); 16 Jul 2013 20:17:04 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 38479 invoked by uid 500); 16 Jul 2013 20:17:04 -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 38133 invoked by uid 99); 16 Jul 2013 20:17:03 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2013 20:17:03 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 023448A9707; Tue, 16 Jul 2013 20:17:03 +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: Tue, 16 Jul 2013 20:17:24 -0000 Message-Id: In-Reply-To: <0176d1c94b414c189caf1f7af26f98ea@git.apache.org> References: <0176d1c94b414c189caf1f7af26f98ea@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [23/27] git commit: [#6290] Ensure last_updated is properly set for trove updates [#6290] Ensure last_updated is properly set for trove updates Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/80676708 Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/80676708 Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/80676708 Branch: refs/heads/cj/4656 Commit: 8067670843bc36cb25a11673e07684b2c51074d9 Parents: 6d18b9f Author: Wayne Witzel III Authored: Tue Jul 16 01:33:29 2013 +0000 Committer: Wayne Witzel III Committed: Tue Jul 16 01:35:56 2013 +0000 ---------------------------------------------------------------------- Allura/allura/ext/admin/admin_main.py | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/80676708/Allura/allura/ext/admin/admin_main.py ---------------------------------------------------------------------- diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py index 7b188c9..1083d86 100644 --- a/Allura/allura/ext/admin/admin_main.py +++ b/Allura/allura/ext/admin/admin_main.py @@ -408,6 +408,7 @@ class ProjectAdminController(BaseController): current_troves.append(trove_obj._id) M.AuditLog.log('add trove %s: %s', type, trove_obj.fullpath) ThreadLocalORMSession.flush_all() # just in case the event handling is super fast + c.project.last_updated = datetime.utcnow() g.post_event('project_updated') else: error_msg = 'This category has already been assigned to the project.' @@ -439,6 +440,7 @@ class ProjectAdminController(BaseController): M.AuditLog.log('remove trove %s: %s', type, trove_obj.fullpath) current_troves.remove(trove_obj._id) ThreadLocalORMSession.flush_all() # just in case the event handling is super fast + c.project.last_updated = datetime.utcnow() g.post_event('project_updated') redirect('trove')