Imio-prettylink

Latest version: v1.18

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

Scan your dependencies

Page 3 of 4

1.7

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

- Do not break in `PrettyLinkAdapter.getLink_cachekey` if context does not have
a workflow.
[gbastien]

1.6

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

- Added caching for `PrettyLinkAdapter.getLink`, the cachekey returns context,
modified, is_locked, review_state and every parameters defined in
`PrettyLinkAdapter.__init__`.
[gbastien]
- Moved link computation from `PrettyLinkAdapter.getLink` that is now a cached
method to `PrettyLinkAdapter._getLink` so it is possible to call it directly
without caching or to override it.
[gbastien]
- Finalized testing configuration to be able to test the getLink caching.
[gbastien]

1.5

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

- Added submethod _get_url that does the url computation.
Additionally it manages the fact that context is a Dexterity file and
append relevant part to the url (/download/...).
[gbastien]
- Do not break if icon name contains special characters.
[gbastien]

1.4

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

- Added CSS class 'no_access' to <span> "can_not_access_this_element"
in addition to class 'discreet' so it may be customized if necessary.
[gbastien]
- Initialize the 'title' attribute with contentValue, this way if a
content is cropped to be displayed (maxLength=...), the complete content
is displayed on hover.
[gbastien]

1.3

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

- Make sure quotes used in title are not breaking formatted strings,
we escape it by replacing quotes by it's HTML entity &39;
[gbastien]

1.2

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

- If 'isViewable' is True (default), check that current user have
'View' on the linked element, if it is forced to False, leave it False.
This way, 'View' check to linked element is managed by imio.prettylink.
[gbastien]

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.