Skip to content

Commit

Permalink
- forgot one place for DeprecationWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Feb 2, 2020
1 parent 20d91c6 commit 859b94d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/DocumentTemplate/sequence/__init__.py
Expand Up @@ -11,6 +11,31 @@
#
##############################################################################

import sys

from zope.deferredimport import deprecated


__allow_access_to_unprotected_subobjects__ = 1

from .SortEx import * # NOQA

# BBB DocumentTemplate 4.0
deprecated(
'Please import from zope.sequencesort.ssort. '
'This module will go away in DocumentTemplate 4.0.',
SortBy='zope.sequencesort.ssort:SortBy',
SortEx='zope.sequencesort.ssort:SortEx',
make_sortfunctions='zope.sequencesort.ssort:make_sortfunctions',
nocase='zope.sequencesort.ssort:nocase',
sort='zope.sequencesort.ssort:sort',
)

# only if locale is already imported
if 'locale' in sys.modules:
# BBB DocumentTemplate 4.0
deprecated(
'Please import from zope.sequencesort.ssort. '
'This module will go away in DocumentTemplate 4.0.',
strcoll_nocase='zope.sequencesort.ssort:strcoll_nocase',
)
del sys

0 comments on commit 859b94d

Please sign in to comment.