incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#4669] Better Post.activity_url
Date Mon, 13 Jan 2014 21:03:04 GMT
Updated Branches:
  refs/heads/master e45ab199a -> f82416005


[#4669] Better Post.activity_url

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


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

Branch: refs/heads/master
Commit: f82416005eba8123b613be50f23d480401fddf71
Parents: e45ab19
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Mon Jan 13 15:03:44 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Jan 13 21:02:34 2014 +0000

----------------------------------------------------------------------
 Allura/allura/model/discuss.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f8241600/Allura/allura/model/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index 4815ceb..884f736 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -484,6 +484,10 @@ class Post(Message, VersionedArtifact, ActivityObject):
     def activity_name(self):
         return 'a comment'
 
+    @property
+    def activity_url(self):
+        return self.url_paginated()
+
     def has_activity_access(self, perm, user, activity):
         """Return True if user has perm access to this object, otherwise
         return False.


Mime
View raw message