Skip to content

Commit

Permalink
Add docstring to group_activity_list()
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 22, 2012
1 parent 61eddb3 commit 8225e73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ckan/model/activity.py
Expand Up @@ -149,6 +149,16 @@ def _group_activity_query(group_id, limit=15):


def group_activity_list(group_id, limit=15):
'''Return the given group's public activity stream.
Returns all activities where the given group or one of its datasets is the
object of the activity, e.g.:
"{USER} updated the group {GROUP}"
"{USER} updated the dataset {DATASET}"
etc.
'''
q = _group_activity_query(group_id)
return _most_recent_activities(q, limit)

Expand Down

0 comments on commit 8225e73

Please sign in to comment.