use ControlPanelFormWrapper for settings panel

This commit is contained in:
Frédéric Péters 2013-01-09 09:41:34 +01:00
parent 9bf2eda4bb
commit 5ab0446622
2 changed files with 11 additions and 3 deletions

View File

@ -7,6 +7,8 @@ from plone.autoform.directives import widget
from collective.z3cform.datagridfield import DataGridFieldFactory
from collective.z3cform.datagridfield.registry import DictRow
from plone.app.registry.browser import controlpanel
from . import _
@ -28,6 +30,13 @@ class ISettings(Interface):
class BatchImporter(BrowserView):
pass
class ControlPanel(BrowserView):
pass
class ControlPanelEditForm(controlpanel.RegistryEditForm):
schema = ISettings
label = _(u'Batch Import Settings')
description = u''
class ControlPanel(controlpanel.ControlPanelFormWrapper):
form = ControlPanelEditForm

View File

@ -21,7 +21,6 @@
name="batchimport-controlpanel"
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
class=".batchimport.ControlPanel"
template="controlpanel.pt"
permission="cmf.ManagePortal"
/>