{"id":23709648,"url":"https://github.com/imio/imio.history","last_synced_at":"2026-02-03T16:03:49.809Z","repository":{"id":29287151,"uuid":"32819906","full_name":"IMIO/imio.history","owner":"IMIO","description":"Manage object history using a table and highlight history link when necessary","archived":false,"fork":false,"pushed_at":"2024-12-19T09:10:29.000Z","size":178,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-12-19T10:25:12.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IMIO.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-24T19:23:02.000Z","updated_at":"2024-12-19T09:10:33.000Z","dependencies_parsed_at":"2023-01-14T14:35:58.319Z","dependency_job_id":"3e1df9c0-0d25-405b-af7c-a4d6ebd8e9b5","html_url":"https://github.com/IMIO/imio.history","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMIO%2Fimio.history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMIO%2Fimio.history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMIO%2Fimio.history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMIO%2Fimio.history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IMIO","download_url":"https://codeload.github.com/IMIO/imio.history/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231902080,"owners_count":18443330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-30T18:57:35.773Z","updated_at":"2026-02-03T16:03:49.776Z","avatar_url":"https://github.com/IMIO.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://github.com/IMIO/imio.history/actions/workflows/main.yml/badge.svg?branch=master\n    :target: https://github.com/IMIO/imio.history/actions/workflows/main.yml\n\n.. image:: https://coveralls.io/repos/IMIO/imio.history/badge.svg\n  :target: https://coveralls.io/r/IMIO/imio.history\n\n.. image:: http://img.shields.io/pypi/v/imio.history.svg\n   :alt: PyPI badge\n   :target: https://pypi.org/project/imio.history\n\nimio.history\n============\n\nManage object history using a table and highlight history link when necessary\n\nThe goal is to be able to manage several histories for various needs on a content and display it together, merged in the same view.\n\nAdapters implementing the `IImioHistory` interface\n--------------------------------------------------\n\nTo do this, we must ensure that the histories use same structure.  We base the work on the `workflow_history`, though a custom history may have additional keys if necessary.\n\nThe workflow_history could looks like :\n\n.. code-block:: python\n\n    {'my_custom_workflow': (\n        {'action': None, 'review_state': 'private', 'actor': 'user_id1',\n        'comments': '', 'time': DateTime('2018/03/27 09:51:55.303708 GMT+2')},\n        {'action': 'publish', 'review_state': 'published', \n        'comments': '', 'actor': 'user_id1', 'time': DateTime('2018/03/29 15:35:24.646745 GMT+2')},\n        {'action': 'retract', 'review_state': 'private',\n        'comments': 'My comments', 'actor': 'admin', 'time': DateTime('2018/03/29 15:35:27.246169 GMT+2')})}\n\nHistories are made available thru a named adapter that implements the `IImioHistory` interface.\n\nBy default, adapters are provided for the `workflow_history` (`ImioWfHistoryAdapter`) and revisions history (`ImioRevisionHistoryAdapter`).\n\nThe `@@historyview`\n-------------------\n\nThe `@@historyview` will display the histories as a table with each information in a column : action, author, date/time, comments.\n\nYou define in the `histories_to_handle` attribute of the view, what histories (named adapters) it should display.\n\nEvery histories are sorted together on the `time` key as it uses the same structure.\n\nTranslations\n------------\n\nThis product has been translated into\n\n- French.\n\n- Spanish.\n\nYou can contribute for any message missing or other new languages, join us at `PloneGov iMiO Team \u003chttps://www.transifex.com/plone/plonegov-imio/\u003e`_ into *Transifex.net* service with all world Plone translators community.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimio%2Fimio.history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimio%2Fimio.history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimio%2Fimio.history/lists"}