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 C9CB6CC09 for ; Tue, 16 Jul 2013 18:04:16 +0000 (UTC) Received: (qmail 66219 invoked by uid 500); 16 Jul 2013 18:04:16 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 66199 invoked by uid 500); 16 Jul 2013 18:04:15 -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 66183 invoked by uid 99); 16 Jul 2013 18:04: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; Tue, 16 Jul 2013 18:04:14 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D5C5D8A9436; Tue, 16 Jul 2013 18:04:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: brondsem@apache.org To: allura-commits@incubator.apache.org Message-Id: <934e4637f61541f6a80ad41154c962f7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [#6290] Ensure last_updated is properly set for trove updates Date: Tue, 16 Jul 2013 18:04:13 +0000 (UTC) Updated Branches: refs/heads/master 6d18b9ffe -> 806767084 [#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/master 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')