33 lines
837 B
Python
33 lines
837 B
Python
from zope.interface import Interface
|
|
from zope import schema
|
|
|
|
from Products.Five.browser import BrowserView
|
|
|
|
from plone.autoform.directives import widget
|
|
from collective.Z3cform.datagridfield import DataGridFieldFactory, DictRow
|
|
|
|
|
|
from . import _
|
|
|
|
class ICodeTypeMapSchema(Interface):
|
|
code = schema.TextLine(title=_("Code"))
|
|
portal_type = schema.TextLine(title=_("Portal Type"))
|
|
|
|
class ISettings(Interface):
|
|
fs_root_directory = schema.TextLine(
|
|
title=_("FS Root Directory"))
|
|
|
|
code_to_type_mapping = schema.List(
|
|
title=_("Code to Portal Type Mapping"),
|
|
value_type=DictRow(title=_("Mapping"),
|
|
schema=ICodeTypeMapSchema)
|
|
)
|
|
widget(code_to_type_mapping=DataGridFieldFactory)
|
|
|
|
class BatchImporter(BrowserView):
|
|
pass
|
|
|
|
class ControlPanel(BrowserView):
|
|
pass
|
|
|