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
1ec27b1a
Commit
1ec27b1a
authored
Mar 30, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use actual deprecation as used for the other Five refactorings and move a test next to its new code
parent
1d344ac3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
src/Products/Five/schema.py
src/Products/Five/schema.py
+5
-1
src/Products/Five/zcml.py
src/Products/Five/zcml.py
+9
-6
src/Zope2/App/tests/test_schema.py
src/Zope2/App/tests/test_schema.py
+2
-4
No files found.
src/Products/Five/schema.py
View file @
1ec27b1a
# BBB
from
Zope2.App.schema
import
Zope2VocabularyRegistry
from
zope.deferredimport
import
deprecated
deprecated
(
"Please import from Zope2.App.schema"
,
Zope2VocabularyRegistry
=
'Zope2.App.schema:Zope2VocabularyRegistry'
,
)
src/Products/Five/zcml.py
View file @
1ec27b1a
# BBB
from
Zope2.App.zcml
import
_context
from
Zope2.App.zcml
import
_initialized
from
zope.deferredimport
import
deprecated
from
Zope2.App.zcml
import
load_site
from
Zope2.App.zcml
import
load_config
from
Zope2.App.zcml
import
load_string
from
Zope2.App.zcml
import
cleanUp
deprecated
(
"Please import from Zope2.App.zcml"
,
_context
=
'Zope2.App.zcml:_context'
,
_initialized
=
'Zope2.App.zcml:_initialized'
,
cleanUp
=
'Zope2.App.zcml:cleanUp'
,
load_config
=
'Zope2.App.zcml:load_config'
,
load_site
=
'Zope2.App.zcml:load_site'
,
load_string
=
'Zope2.App.zcml:load_string'
,
)
src/
Products/Five
/tests/test_schema.py
→
src/
Zope2/App
/tests/test_schema.py
View file @
1ec27b1a
...
...
@@ -10,17 +10,15 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
""" Unit tests for Products.Five.schema module.
$Id: tests.py 71093 2006-11-07 13:54:29Z yuppie $
"""
import
unittest
from
zope.testing.cleanup
import
CleanUp
class
Zope2VocabularyRegistryTests
(
unittest
.
TestCase
,
CleanUp
):
def
_getTargetClass
(
self
):
from
Products.Five
.schema
import
Zope2VocabularyRegistry
from
.
.schema
import
Zope2VocabularyRegistry
return
Zope2VocabularyRegistry
def
_makeOne
(
self
):
...
...
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