diff options
Diffstat (limited to 'chimere/actions.py')
| -rw-r--r-- | chimere/actions.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chimere/actions.py b/chimere/actions.py index 8ef5338..7a4b263 100644 --- a/chimere/actions.py +++ b/chimere/actions.py @@ -32,9 +32,9 @@ class Action: self.id, self.path, self.label = id, path, label self.extra_url_args, self.url = extra_url_args, None - def update_url(self, area_name): + def update_url(self, map_name): self.url = reverse(self.path, - args=[area_name + '/' if area_name else ''] + self.extra_url_args) + args=[map_name + '/' if map_name else ''] + self.extra_url_args) default_actions = [(Action('view', 'chimere:index', _('View')), []), (Action('contribute', 'chimere:edit', _('Contribute')), @@ -51,15 +51,15 @@ if settings.EMAIL_HOST: _('Contact us')), []),) -def actions(area_name=''): +def actions(map_name=''): acts = default_actions[:] for act, childs in default_actions: - act.update_url(area_name) + act.update_url(map_name) for child_act in childs: - child_act.update_url(area_name) + child_act.update_url(map_name) for page in Page.objects.filter(available=True).order_by('order'): act = Action(page.mnemonic, 'chimere:extra_page', page.title, [page.mnemonic]) - act.update_url(area_name) + act.update_url(map_name) acts.append((act, [])) return acts |
