Skip to content

Commit

Permalink
[#1281] call setup_template_variables in group/org read, about and bu…
Browse files Browse the repository at this point in the history
…lk_process
  • Loading branch information
wardi committed Oct 23, 2013
1 parent 48f5eeb commit 05c27ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ckan/controllers/group.py
Expand Up @@ -344,6 +344,9 @@ def pager_url(q=None, page=None):
c.facets = {}
c.page = h.Page(collection=[])

self._setup_template_variables(context, {'id':id},
group_type=group_type)

def bulk_process(self, id):
''' Allow bulk processing of datasets for an organization. Make
private/public or delete. For organization admins.'''
Expand Down Expand Up @@ -828,7 +831,9 @@ def admins(self, id):

def about(self, id):
c.group_dict = self._get_group_dict(id)
return render(self._about_template(c.group_dict['type']))
group_type = c.group_dict['type']
self._setup_template_variables({}, {'id': id}, group_type=group_type)
return render(self._about_template(group_type))

def _get_group_dict(self, id):
''' returns the result of group_show action or aborts if there is a
Expand Down

0 comments on commit 05c27ce

Please sign in to comment.