Plone.app.vocabularies

Latest version: v6.0.1

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

Scan your dependencies

Page 5 of 13

3.0

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

Breaking changes:

- CatalogVocabulary now takes a query for it's constructor instead of a LazyMap of brains
and lazy loads terms. Also, in __contains__, do a UID query instead of checking the
entire contents of the result. This prevents potential DOS with custom code where the
whole contents of the catalog would get loaded with terms created for it on every
validation attempt.
[vangheem]

New features:

- Optional allow to filter keyword vocabulary to a current *section* based on the current context.
The class was build for easy subclassing - and still is.
It allows to override the section fetching logic in a subclass.
The default logic is first to look in the controlpanel if there is a ``IEditingSchema.subjects_of_navigation_root`` boolean.
If its ``True`` the ``getNavigationRootObject`` is used as the section and only keywords used in this section are part of the vocabulary.
Otherwise all keywords in the index are displayed.
[jensens]

2.3.0

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

New features:

- Refactor ``KeywordsVocabulary`` logic of term construction from *dirty* values out into own functions.
Document functions in README.
[jensens]

2.2.5

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

Bug fixes:

- Import getAllowedSizes from CMFPlone to avoid dependency on plone.app.imaging.
[davisagli]

- Fix bug where queries would not be parsed correctly for date queries on the catalog
vocabulary
[vangheem]

2.2.4

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

New:

- Add ImagesScales vocabulary.
[bsuttor]

Fixes:

- increase readability of code in CatalogSource.
[jensens]

2.2.3

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

New:

- Vocabulary for permissions
[ebrehault]

- Vocabulary for portal action categories
[ebrehault]

2.2.2

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

Fixes:

- Restrict Catalog vocabulary to search current Navigation Root unless
path is specified.
[alecm]

Page 5 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.