Skip to content

Commit

Permalink
Updated deprecation warnings to point to Zope 4 instead of 2.14.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Mar 24, 2012
1 parent 3493089 commit 37f9043
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,7 @@ Changelog
2.13.23 (unreleased)
--------------------

- Updated deprecation warnings to point to Zope 4 instead of 2.14.

2.13.22 (2011-11-17)
--------------------
Expand Down
10 changes: 5 additions & 5 deletions src/Products/ZCatalog/Catalog.py
Expand Up @@ -439,7 +439,7 @@ def make_query(self, request):
'object or a mixture of a query dict and keyword '
'arguments. Please use only a simple query dict. '
'Your query contained "%s". This support is '
'deprecated and will be removed in Zope 2.14.' %
'deprecated and will be removed in Zope 4.' %
repr(real_req), DeprecationWarning, stacklevel=4)

known_keys = query.keys()
Expand Down Expand Up @@ -529,7 +529,7 @@ def search(self, query, sort_index=None, reverse=0, limit=None, merge=1):
if r is not None:
r, u = r
# Short circuit if empty result
# BBB: We can remove the "r is not None" check in Zope 2.14
# BBB: We can remove the "r is not None" check in Zope 4
# once we don't need to support the "return everything" case
# anymore
if r is not None and not r:
Expand Down Expand Up @@ -573,7 +573,7 @@ def search(self, query, sort_index=None, reverse=0, limit=None, merge=1):
# and so we return everything in the catalog
warnings.warn('Your query %s produced no query restriction. '
'Currently the entire catalog content is returned. '
'In Zope 2.14 this will result in an empty LazyCat '
'In Zope 4 this will result in an empty LazyCat '
'to be returned.' % repr(cr.make_key(query)),
DeprecationWarning, stacklevel=3)

Expand Down Expand Up @@ -885,7 +885,7 @@ def searchResults(self, REQUEST=None, used=None, _merge=1, **kw):
if REQUEST is None and not kw:
# Try to acquire request if we get no args for bw compat
warnings.warn('Calling searchResults without a query argument nor '
'keyword arguments is deprecated. In Zope 2.14 the '
'keyword arguments is deprecated. In Zope 4 the '
'query will no longer be automatically taken from '
'the acquired request.',
DeprecationWarning, stacklevel=3)
Expand Down Expand Up @@ -923,7 +923,7 @@ class CatalogSearchArgumentsMap(object):
BBB: Values that are empty strings are treated as non-existent. This is
to ignore empty values, thereby ignoring empty form fields to be
consistent with hysterical behavior. This is deprecated and can be changed
in Zope 2.14.
in Zope 4.
"""

def __init__(self, request, keywords):
Expand Down
2 changes: 1 addition & 1 deletion src/Products/ZCatalog/CatalogAwareness.py
Expand Up @@ -39,7 +39,7 @@ class CatalogAware:

def _warn_deprecated(self):
warnings.warn('The Products.ZCatalog.CatalogAwareness module is '
'deprecated and will be removed in Zope 2.14. Please '
'deprecated and will be removed in Zope 4. Please '
'use event subscribers for zope.lifecycle events to '
'automatically index and unindex your objects.',
DeprecationWarning, stacklevel=3)
Expand Down
2 changes: 1 addition & 1 deletion src/Products/ZCatalog/CatalogPathAwareness.py
Expand Up @@ -35,7 +35,7 @@ class CatalogAware:

def _warn_deprecated(self):
warnings.warn('The Products.ZCatalog.CatalogPathAwareness module is '
'deprecated and will be removed in Zope 2.14. Please '
'deprecated and will be removed in Zope 4. Please '
'use event subscribers for zope.lifecycle events to '
'automatically index and unindex your objects.',
DeprecationWarning, stacklevel=3)
Expand Down

0 comments on commit 37f9043

Please sign in to comment.