Skip to content

Commit

Permalink
Merge 1eef28b into 4db996e
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Jul 12, 2018
2 parents 4db996e + 1eef28b commit 6cb1f9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -5,6 +5,9 @@ Changes
1.5.0 (unreleased)
------------------

- fix controlpanel to show settings navigation
[petschki]

- memoize vocabulary lookup
[tomgross, petschki]

Expand Down
8 changes: 6 additions & 2 deletions src/collective/taxonomy/controlpanel.py
Expand Up @@ -27,7 +27,7 @@
logger = logging.getLogger("taxonomy.controlpanel")


class TaxonomySettingsControlPanel(controlpanel.RegistryEditForm):
class TaxonomySettingsControlPanelForm(controlpanel.RegistryEditForm):
""" A controlpanel for managing taxonomies
"""
Expand All @@ -39,7 +39,7 @@ class TaxonomySettingsControlPanel(controlpanel.RegistryEditForm):
description = _("Taxonomy settings")

def updateFields(self):
super(TaxonomySettingsControlPanel, self).updateFields()
super(TaxonomySettingsControlPanelForm, self).updateFields()
self.fields['taxonomies'].widgetFactory = CheckBoxFieldWidget

def updateActions(self):
Expand Down Expand Up @@ -121,6 +121,10 @@ def handle_export_action(self, action):
self.render = lambda: result


class TaxonomySettingsControlPanel(controlpanel.ControlPanelFormWrapper):
form = TaxonomySettingsControlPanelForm


class TaxonomyAddForm(form.AddForm):

fields = field.Fields(ITaxonomyForm)
Expand Down

0 comments on commit 6cb1f9e

Please sign in to comment.