Skip to content

Commit

Permalink
[#646] Tweak member_roles_list docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Jun 26, 2013
1 parent 57eda70 commit 5e22121
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ckan/logic/action/get.py
Expand Up @@ -2730,10 +2730,12 @@ def _unpick_search(sort, allowed_fields=None, total=None):


def member_roles_list(context, data_dict):
'''Returns the roles possible for members of groups and organizations.
'''Return the possible roles for members of groups and organizations.
:returns: the names and titles for roles that are possible for members in
groups and organizations
:returns: a list of dictionaries each with two keys: "text" (the display
name of the role, e.g. "Admin") and "value" (the internal name of the
role, e.g. "admin")
:rtype: list of dictionaries
'''
return new_authz.roles_list()

0 comments on commit 5e22121

Please sign in to comment.