You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2014/01/13 16:04:00 UTC
git commit: [#4669] Better Post.activity_url
Updated Branches:
refs/heads/tv/4669 [created] f2d84db2d
[#4669] Better Post.activity_url
Signed-off-by: Tim Van Steenburgh <tv...@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/f2d84db2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/f2d84db2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/f2d84db2
Branch: refs/heads/tv/4669
Commit: f2d84db2d593b81674ea960431b68affd0fe420e
Parents: 0ca218a
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Mon Jan 13 15:03:44 2014 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Mon Jan 13 15:03:44 2014 +0000
----------------------------------------------------------------------
Allura/allura/model/discuss.py | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f2d84db2/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.