Commit b67e8ef2 authored by Hanno Schlichting's avatar Hanno Schlichting

Use real deprecation for formlib, at some point we want to remove this code.

parent ec3f35e6
# BBB
from five.formlib import AddView
from five.formlib import EditView
from zope.deferredimport import deprecated
deprecated("Please import from five.formlib",
AddView = 'five.formlib:AddView',
EditView = 'five.formlib:EditView',
)
# BBB
from five.formlib.macros import FormMacros
from zope.deferredimport import deprecated
deprecated("Please import from five.formlib",
FormMacros = 'five.formlib.macros:FormMacros',
)
# BBB
from five.formlib.metaconfigure import EditViewFactory
from five.formlib.metaconfigure import FiveFormDirective
from five.formlib.metaconfigure import EditFormDirective
from five.formlib.metaconfigure import AddViewFactory
from five.formlib.metaconfigure import AddFormDirective
from zope.deferredimport import deprecated
deprecated("Please import from five.formlib",
EditViewFactory = 'five.formlib.metaconfigure:EditViewFactory',
FiveFormDirective = 'five.formlib.metaconfigure:FiveFormDirective',
EditFormDirective = 'five.formlib.metaconfigure:EditFormDirective',
AddViewFactory = 'five.formlib.metaconfigure:AddViewFactory',
AddFormDirective = 'five.formlib.metaconfigure:AddFormDirective',
)
# BBB
from five.formlib.objectwidget import ObjectWidgetView
from five.formlib.objectwidget import ObjectWidget
from five.formlib.objectwidget import ObjectWidgetClass
from zope.deferredimport import deprecated
deprecated("Please import from five.formlib",
ObjectWidgetView = 'five.formlib.objectwidget:ObjectWidgetView',
ObjectWidget = 'five.formlib.objectwidget:ObjectWidget',
ObjectWidgetClass = 'five.formlib.objectwidget:ObjectWidgetClass',
)
# BBB
from five.formlib.formbase import _FORMLIB_DIR
from five.formlib.formbase import _PAGEFORM_PATH
from five.formlib.formbase import _SUBPAGEFORM_PATH
from five.formlib.formbase import FiveFormlibMixin
from five.formlib.formbase import FormBase
from five.formlib.formbase import EditFormBase
from five.formlib.formbase import DisplayFormBase
from five.formlib.formbase import AddFormBase
from five.formlib.formbase import PageForm
from five.formlib.formbase import Form
from five.formlib.formbase import PageEditForm
from five.formlib.formbase import EditForm
from five.formlib.formbase import PageDisplayForm
from five.formlib.formbase import DisplayForm
from five.formlib.formbase import PageAddForm
from five.formlib.formbase import AddForm
from five.formlib.formbase import SubPageForm
from five.formlib.formbase import SubPageEditForm
from five.formlib.formbase import SubPageDisplayForm
from zope.deferredimport import deprecated
deprecated("Please import from five.formlib",
FiveFormlibMixin = 'five.formlib.formbase:FiveFormlibMixin',
FormBase = 'five.formlib.formbase:FormBase',
EditFormBase = 'five.formlib.formbase:EditFormBase',
DisplayFormBase = 'five.formlib.formbase:DisplayFormBase',
AddFormBase = 'five.formlib.formbase:AddFormBase',
PageForm = 'five.formlib.formbase:PageForm',
PageEditForm = 'five.formlib.formbase:PageEditForm',
EditForm = 'five.formlib.formbase:EditForm',
PageDisplayForm = 'five.formlib.formbase:PageDisplayForm',
DisplayForm = 'five.formlib.formbase:DisplayForm',
PageAddForm = 'five.formlib.formbase:PageAddForm',
AddForm = 'five.formlib.formbase:AddForm',
SubPageForm = 'five.formlib.formbase:SubPageForm',
SubPageEditForm = 'five.formlib.formbase:SubPageEditForm',
SubPageDisplayForm = 'five.formlib.formbase:SubPageDisplayForm',
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment