From 427b852e3fc386f93907ecf36900bdbcaae7fce5 Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Mon, 25 Mar 2013 11:18:33 +0530 Subject: [PATCH] Documentation for member_roles_list --- ckan/logic/action/get.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index 45417d8f8a6..2738f5592f7 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -834,7 +834,7 @@ def _group_or_org_show(context, data_dict, is_org=False): _check_access('organization_show',context, data_dict) else: _check_access('group_show',context, data_dict) - + group_dict = model_dictize.group_dictize(group, context) @@ -2702,4 +2702,11 @@ def _unpick_search(sort, allowed_fields=None, total=None): def member_roles_list(context, data_dict): + '''Return the list of roles. + + Return the list of roles for use in forms. + + :rtype: list of dictionaries + + ''' return new_authz.roles_list()