incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [23/27] git commit: [#6290] Ensure last_updated is properly set for trove updates
Date Tue, 16 Jul 2013 20:17:24 GMT
[#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 <wwitzel@slashdotmedia.com>
Authored: Tue Jul 16 01:33:29 2013 +0000
Committer: Wayne Witzel III <wwitzel@slashdotmedia.com>
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')
 


Mime
View raw message