Products.zcatalog

Latest version: v7.1

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 10

3.0

------------------

- Strip white space from name when adding a column or index.

- Forward compatibility for Zope 4 removal of RequestContainer.

- Optimize brain instantiation, by creating underlying record items in a
single step, instead of creation and three update calls.

3.0b1

------------------

- LP 727981: Fix DateIndex ZMI browsing for dates in the first month of a
year.

- Unify Unindex and DateIndex search logic (`_apply_index`) adding `not`
support to DateIndexes.

3.0a2

------------------

- Fixed another issue with preserving score values, when a custom index was
queried first which was neither ILimitedResultIndex aware nor return scores,
and a later index was of the default ZCTextIndex type.

3.0a1

------------------

- Expand query report, to cover details on sort indexes, order and limits.

- As part of each progress handler report, also do an automatic transaction
savepoint, to give the ZODB cache a chance to do garbage collection.

- Added a `threshold` argument to the catalog's `addColumn` and `delColumn`
methods and used it for a progress handler. Also optimized some of their
internals.

- Added support for `sort_on` queries with any number of sort indexes and
differing `sort_order` values. For example:
`{'foo': 'a', 'sort_on': ('foo', 'bar')}`
`{'foo': 'a', 'sort_on': ('foo', 'bar'), 'sort_order': ('', 'reverse')}`
`{'foo': 'a', 'sort_on': ('foo', 'bar', 'baz')}`

- Added support for `not` queries in field and keyword indexes. Both
restrictions of normal queries and range queries are supported, as well as
purely exclusive queries. For example:
`{'foo': {'query': ['a', 'ab'], 'not': 'a'}}`
`{'foo': {'query': 'a', 'range': 'min', 'not': ['a', 'e', 'f']}}`
`{'foo': {'not': ['a', 'b']}}`.
Note that negative filtering on an index still restricts items to those
having a value in the index. So with 10 documents, 5 of them in the `foo`
index with a value of `1`, a query for `not 1` will return no items instead
of the 5 items without a value. You need to index a dummy/default value if
you want to consider all items for a particular index.

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

2.13.22

--------------------

- Added a new `load_from_path` class method to the `PriorityMap`, which allows
one to load a plan from a file, instead of a module via an environment var.

2.13.21

--------------------

- Refactored value index logic. Determine value indexes per catalog instead of
globally. Store value index set in the priority map, so it can be seen in the
ZMI and stored in the module level storage.

- Added support for using ZCatalog as local utility.
This feature requires the optional `five.globalrequest` dependency.

Page 6 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.