Skip to content

Commit

Permalink
[#2939] Add members action to group controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 12, 2012
1 parent 1b48045 commit c5d7888
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ckan/controllers/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,21 @@ def delete(self, id):
abort(404, _('Group not found'))
return self._render_template('group/confirm_delete.html')

def members(self, id):
context = {'model': model, 'session': model.Session,
'user': c.user or c.author}

try:
c.members = self._action('member_list')(context, {'id': id})
c.group_dict = self._action('group_show')(context, {'id': id})
except NotAuthorized:
abort(401, _('Unauthorized to delete group %s') % '')
except NotFound:
abort(404, _('Group not found'))
print c.members
print c.group_dict
return self._render_template('group/members.html')

def history(self, id):
if 'diff' in request.params or 'selected1' in request.params:
try:
Expand Down

0 comments on commit c5d7888

Please sign in to comment.