Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
b67e8ef2
Commit
b67e8ef2
authored
Dec 26, 2009
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use real deprecation for formlib, at some point we want to remove this code.
parent
ec3f35e6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
35 deletions
+46
-35
src/Products/Five/form/__init__.py
src/Products/Five/form/__init__.py
+6
-3
src/Products/Five/form/macros.py
src/Products/Five/form/macros.py
+5
-2
src/Products/Five/form/metaconfigure.py
src/Products/Five/form/metaconfigure.py
+9
-6
src/Products/Five/form/objectwidget.py
src/Products/Five/form/objectwidget.py
+7
-4
src/Products/Five/formlib/formbase.py
src/Products/Five/formlib/formbase.py
+19
-20
No files found.
src/Products/Five/form/__init__.py
View file @
b67e8ef2
# 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'
,
)
src/Products/Five/form/macros.py
View file @
b67e8ef2
# BBB
from
five.formlib.macros
import
FormMacros
from
zope.deferredimport
import
deprecated
deprecated
(
"Please import from five.formlib"
,
FormMacros
=
'five.formlib.macros:FormMacros'
,
)
src/Products/Five/form/metaconfigure.py
View file @
b67e8ef2
# 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'
,
)
src/Products/Five/form/objectwidget.py
View file @
b67e8ef2
# 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'
,
)
src/Products/Five/formlib/formbase.py
View file @
b67e8ef2
# 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'
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment