incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#4669] Better Post.activity_url
Date Mon, 13 Jan 2014 15:04:00 GMT
Updated Branches:
  refs/heads/tv/4669 [created] f2d84db2d


[#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/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 <tvansteenburgh@gmail.com>
Authored: Mon Jan 13 15:03:44 2014 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@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.


Mime
View raw message