This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
collective.dms.batchimport/src/collective/dms/batchimport/batchimport.py

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