Imio.history

Latest version: v1.36

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

Scan your dependencies

Page 4 of 7

1.19

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

- Allow access to module `utils` from restricted python (TAL expression).
[gbastien]

1.18

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

- As `ImioWfHistoryAdapter.ignorableHistoryComments` should return a list of
unicode, we force unicode comparison in
`ImioWfHistoryAdapter.historyLastEventHasComments`, this way we avoid warning
in Zope log.
[gbastien]
- `isort` on imports.
[gbastien]
- Added helper `utils.getLastWFAction` that is actually a shortcut to
`utils.getLastAction` using the `IImioHistory` 'workflow' adapter.
[gbastien]

1.17

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

- Factorize `show_history` functionnality. The method is now defined on the
`IHContentHistoryView` and is used by
`IHDocumentBylineViewlet.show_history` and the `historyview`.
This way, we make sure that if the link is not shown on the viewlet, the
history is not shown in the `historyview` if user enter the view name
manually in the browser.
[gbastien]

1.16

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

- Use `memoize` on `BaseImioHistoryAdapter.get_history_data` and
`BaseImioHistoryAdapter.getHistory` to avoid recomputing it if adapter did
not changed. This is useful for the `highlight_history_link` functionnality.
[gbastien]
- `utils.getLastAction` now receives an `IImioHistory` adapter as first
argument instead an obj and an adapter name.
[gbastien]

1.15

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

- Added attribute `ImioWfHistoryAdapter.include_previous_review_state`,
`False` by default, if set to `True`, the returned history will include
`previous_review_state`.
[gbastien]

1.14

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

- Refactored code so it is easy to handle no histories.
[gbastien]
- Do not fail to call workflow_history specific methods if obj has no workflow.
[gbastien]
- `IHContentHistoryView.renderComments` now receives the entire event as
parameter not just the comment so it pass the different values of the event as
mapping to the translate method so it is useable in translated comment.
[gbastien]
- Added `IHContentHistoryView.renderCustomJS` to be able to inject custom JS
when loading the `historyview`, especially because it is loaded as an
overlay.
[gbastien]
- Added helper `utils.add_event_to_history` that adds an event to an history
respecting minimum required data.
[gbastien]
- Added the `BaseImioHistoryAdapter.mayViewEvent` method used when parameter
`checkMayViewEvent=True`, it returns `True` by default but is made to be
overrided, if returns False, the entire event is not displayed in the
`historyview`.
[gbastien]

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.