imio.zamqp.pm


Nameimio.zamqp.pm JSON
Version 0.18 PyPI version JSON
download
home_pagehttps://github.com/imio/
SummaryPloneMeeting specific methods to use amqp
upload_time2023-10-27 08:23:05
maintainer
docs_urlNone
authorIMIO
requires_python
licenseGPL
keywords plone python imio
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. contents::

Introduction
============

Products.PloneMeeting specific methods to use amqp (collective.zamqp), rely on imio.zamqp.core



Changelog
=========

0.18 (2023-10-27)
-----------------

- Removed `config.BARCODE_INSERTED_ATTR_ID`, we do not use it anymore to check
  if a barcode was inserted, we rely on the `scan_id`.
  [gbastien]

0.17 (2023-09-04)
-----------------

- Moved `collective.iconifiedcategory` `ContentCategory` overrides
  back to `Products.PloneMeeting`.
  [gbastien]
- Cleaned code:

  - removed event that deleted copied annexes with a `scan_id`,
    now managed by `Products.PloneMeeting`;
  - removed setup for `scan_id` index, done by `collective.dms.scanbehavior`.

  [gbastien]
- Take into account new parameter `MeetingConfig.annexEditorMayInsertBarcode`
  in `InsertBarcodeView.may_insert_barcode`.
  [gbastien]

0.16 (2023-02-27)
-----------------

- Adapted call to `imio.zamqp.core.utils.next_scan_id` where typo in parameter
  `cliend_id_var` was fixed to `client_id_var`.
  [gbastien]

0.15 (2022-06-14)
-----------------

- In `consumer._manage_after_scan_change_annex_type_to`, set the `content_category`
  on the adapted context (with `IIconifiedCategorization` behavior) so the
  `@content_category.setter` is called and default values are adapted accordingly.
  [gbastien]

0.14 (2022-01-07)
-----------------

- Fixed call to `ToolPloneMeeting.isManager`, when called with
  `realManagers=True`, no context can be passed.
  [gbastien]

0.13 (2022-01-03)
-----------------

- Use `notifyModifiedAndReindex(idxs=['scan_id'])` that will only update relevant
  modification data and `scan_id` after barcode inserted in PDF file.
  [gbastien]

0.12 (2021-11-26)
-----------------

- Use unrestricted catalog query in `AfterScanChangeAnnexTypeToVocabulary`.
  [gbastien]
- Optimize ram.cache for `ToolPloneMeeting.isManager` by calling it with cfg as context.
  [gbastien]

0.11 (2021-11-08)
-----------------

- Fixed `test_store_pod_template_as_annex_temporary_scan_id_batch_action` as
  `MeetingConfig.meetingItemTemplateToStoreAsAnnex` (single value) was renamed to
  `MeetingConfig.meetingItemTemplatesToStoreAsAnnex` (multi valued).
  [gbastien]
- Fixed `test_may_insert_barcode`, now that we use roles
  `Editor/Reader/Contributor` in `MeetingItem` workflow.
  [gbastien]
- Fixed `test_store_pod_template_as_annex_temporary_scan_id_batch_action` broken
  because Meeting moved from AT to DX.
  [gbastien]
- Do not use devpi.imio.be index anymore for buildout.
  [gbastien]
- Factorized use of `DEFAULT_SCAN_ID` in tests.
  [gbastien]

0.10 (2020-05-28)
-----------------

- Moved all the GS types profile logic to `Products.PloneMeeting`,
  by default it will behave like if `imio.zamqp.pm` was enabled.
  [gbastien]

0.9 (2020-04-29)
----------------

- Added test for `MeetingStoreItemsPodTemplateAsAnnexBatchActionForm` to ensure
  that `Temporary QR code` label is not used in stored annex.
  [gbastien]
- Add a `portal_message` when an annex is removed during duplication
  because it holds a `scan_id`.
  [gbastien]

0.8 (2020-03-12)
----------------

- When cloning an item, make sure annexes having a `scan_id` are not kept.
  [gbastien]
- Added test for `get_scan_id` that appends a value `Temporary` if generated
  when pod template still not stored as annex.
  [gbastien]
- Fixed tests after changes in `collective.iconifiedcategory`, do not create an
  annex at the portal root, it is an impossible usecase but create annex in an
  item stored in a PloneMeeting folder.
  [gbastien]

0.7 (2019-05-16)
----------------

- Makes IZPMAnnexPrettyLinkAdapter inherits from PMAnnexPrettyLinkAdapter as it
  is now overrided in Products.PloneMeeting.
  [gbastien]
- Rely on parameter `ToolPloneMeeting.enabledScanDocs` to know if action
  `insert-barcode` is available and to add additional context to the document
  generation helper view.
  [gbastien]
- Make `scan_id` computation work when template is used in a loop template.
  [gbastien]

0.6 (2018-12-04)
----------------

- Fixed tests by using PMLayer as base testing layer and defining correct
  OO_PORT and PYTHON_UNO env variables.
  [gbastien]

0.5 (2018-01-31)
----------------

- Added possibility to save a version of the annex when inserting the barcode
  if parameter `version_when_barcode_inserted` is set to `True` and when the
  scanned file is reinjected if parameter `version_when_scanned_file_reinjected`
  is set to `True` likewise.
  [gbastien]
- Define relevant behaviors for portal_type `annexDecision` using `purge=True`.
  [gbastien]
- Fixed code as `imio.zamqp.core.consumer.file_portal_type` was renamed to
  `imio.zamqp.core.consumer.file_portal_types`, it returns a list of
  portal_types to query to get the existing file, the first of these
  portal_types is used by `imio.zamqp.core.consumer.creation_file_portal_type`
  to determinate portal_type to create.
  [gbastien]
- When updating file, update scan attributes as well : `scan_date`, `scan_user`,
  `page_numbers`, `scanner`, ...
  [gbastien]

0.4 (2017-12-21)
----------------

- Use the `consume` method from `imio.zamqp.core` to consume the message to
  avoid duplicating code.
  [gbastien]
- Import `PdfReadError` from `PyPDF2`, `imio.helpers` uses it instead
  deprecated `pyPdf`.
  [gbastien]

0.3 (2017-12-06)
----------------

- In field `after_scan_change_annex_type_to`, added possibility to select an
  item_decision_annex on an item_annex and the other way round. This way the
  annex can be turned from an item annex to an item decision annex
  after scan process.
  [gbastien]
- Changed default values for `X` and `Y` coordinates used by the
  `@@insert-barcode` view so it is inserted in the top right corner by default.
  [gbastien]

0.2 (2017-11-28)
----------------

- Added `scan_id` to `AMQPPMDocumentGenerationView.get_base_generation_context`.
  [gbastien]

0.1 (2017-11-27)
----------------

- Initial release.
  [gbastien]
- Added `@@insert-barcode` view.
  [gbastien]
- Make tests rely on PloneMeetingTestCase.
  [gbastien]
- Added possibility to change the `content_category` of an annex when it's
  file is updated and make it configurable on the `ContentCategory` object thru
  the `after_scan_change_annex_type_to` field.
  [gbastien]
- Use helper `imio.zamqp.pm.utils.next_scan_id_pm` that calls
  `imio.zamqp.core.utils.next_scan_id` to be sure that relevant parameters are
  always passed correctly.
  [gbastien]
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/imio/",
    "name": "imio.zamqp.pm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Plone Python IMIO",
    "author": "IMIO",
    "author_email": "support@imio.be",
    "download_url": "https://files.pythonhosted.org/packages/79/36/aadff46ac136be5abb375ec57f89a2892d0d95ad9fe35d9a4b8d6da5ec2d/imio.zamqp.pm-0.18.tar.gz",
    "platform": null,
    "description": ".. contents::\n\nIntroduction\n============\n\nProducts.PloneMeeting specific methods to use amqp (collective.zamqp), rely on imio.zamqp.core\n\n\n\nChangelog\n=========\n\n0.18 (2023-10-27)\n-----------------\n\n- Removed `config.BARCODE_INSERTED_ATTR_ID`, we do not use it anymore to check\n  if a barcode was inserted, we rely on the `scan_id`.\n  [gbastien]\n\n0.17 (2023-09-04)\n-----------------\n\n- Moved `collective.iconifiedcategory` `ContentCategory` overrides\n  back to `Products.PloneMeeting`.\n  [gbastien]\n- Cleaned code:\n\n  - removed event that deleted copied annexes with a `scan_id`,\n    now managed by `Products.PloneMeeting`;\n  - removed setup for `scan_id` index, done by `collective.dms.scanbehavior`.\n\n  [gbastien]\n- Take into account new parameter `MeetingConfig.annexEditorMayInsertBarcode`\n  in `InsertBarcodeView.may_insert_barcode`.\n  [gbastien]\n\n0.16 (2023-02-27)\n-----------------\n\n- Adapted call to `imio.zamqp.core.utils.next_scan_id` where typo in parameter\n  `cliend_id_var` was fixed to `client_id_var`.\n  [gbastien]\n\n0.15 (2022-06-14)\n-----------------\n\n- In `consumer._manage_after_scan_change_annex_type_to`, set the `content_category`\n  on the adapted context (with `IIconifiedCategorization` behavior) so the\n  `@content_category.setter` is called and default values are adapted accordingly.\n  [gbastien]\n\n0.14 (2022-01-07)\n-----------------\n\n- Fixed call to `ToolPloneMeeting.isManager`, when called with\n  `realManagers=True`, no context can be passed.\n  [gbastien]\n\n0.13 (2022-01-03)\n-----------------\n\n- Use `notifyModifiedAndReindex(idxs=['scan_id'])` that will only update relevant\n  modification data and `scan_id` after barcode inserted in PDF file.\n  [gbastien]\n\n0.12 (2021-11-26)\n-----------------\n\n- Use unrestricted catalog query in `AfterScanChangeAnnexTypeToVocabulary`.\n  [gbastien]\n- Optimize ram.cache for `ToolPloneMeeting.isManager` by calling it with cfg as context.\n  [gbastien]\n\n0.11 (2021-11-08)\n-----------------\n\n- Fixed `test_store_pod_template_as_annex_temporary_scan_id_batch_action` as\n  `MeetingConfig.meetingItemTemplateToStoreAsAnnex` (single value) was renamed to\n  `MeetingConfig.meetingItemTemplatesToStoreAsAnnex` (multi valued).\n  [gbastien]\n- Fixed `test_may_insert_barcode`, now that we use roles\n  `Editor/Reader/Contributor` in `MeetingItem` workflow.\n  [gbastien]\n- Fixed `test_store_pod_template_as_annex_temporary_scan_id_batch_action` broken\n  because Meeting moved from AT to DX.\n  [gbastien]\n- Do not use devpi.imio.be index anymore for buildout.\n  [gbastien]\n- Factorized use of `DEFAULT_SCAN_ID` in tests.\n  [gbastien]\n\n0.10 (2020-05-28)\n-----------------\n\n- Moved all the GS types profile logic to `Products.PloneMeeting`,\n  by default it will behave like if `imio.zamqp.pm` was enabled.\n  [gbastien]\n\n0.9 (2020-04-29)\n----------------\n\n- Added test for `MeetingStoreItemsPodTemplateAsAnnexBatchActionForm` to ensure\n  that `Temporary QR code` label is not used in stored annex.\n  [gbastien]\n- Add a `portal_message` when an annex is removed during duplication\n  because it holds a `scan_id`.\n  [gbastien]\n\n0.8 (2020-03-12)\n----------------\n\n- When cloning an item, make sure annexes having a `scan_id` are not kept.\n  [gbastien]\n- Added test for `get_scan_id` that appends a value `Temporary` if generated\n  when pod template still not stored as annex.\n  [gbastien]\n- Fixed tests after changes in `collective.iconifiedcategory`, do not create an\n  annex at the portal root, it is an impossible usecase but create annex in an\n  item stored in a PloneMeeting folder.\n  [gbastien]\n\n0.7 (2019-05-16)\n----------------\n\n- Makes IZPMAnnexPrettyLinkAdapter inherits from PMAnnexPrettyLinkAdapter as it\n  is now overrided in Products.PloneMeeting.\n  [gbastien]\n- Rely on parameter `ToolPloneMeeting.enabledScanDocs` to know if action\n  `insert-barcode` is available and to add additional context to the document\n  generation helper view.\n  [gbastien]\n- Make `scan_id` computation work when template is used in a loop template.\n  [gbastien]\n\n0.6 (2018-12-04)\n----------------\n\n- Fixed tests by using PMLayer as base testing layer and defining correct\n  OO_PORT and PYTHON_UNO env variables.\n  [gbastien]\n\n0.5 (2018-01-31)\n----------------\n\n- Added possibility to save a version of the annex when inserting the barcode\n  if parameter `version_when_barcode_inserted` is set to `True` and when the\n  scanned file is reinjected if parameter `version_when_scanned_file_reinjected`\n  is set to `True` likewise.\n  [gbastien]\n- Define relevant behaviors for portal_type `annexDecision` using `purge=True`.\n  [gbastien]\n- Fixed code as `imio.zamqp.core.consumer.file_portal_type` was renamed to\n  `imio.zamqp.core.consumer.file_portal_types`, it returns a list of\n  portal_types to query to get the existing file, the first of these\n  portal_types is used by `imio.zamqp.core.consumer.creation_file_portal_type`\n  to determinate portal_type to create.\n  [gbastien]\n- When updating file, update scan attributes as well : `scan_date`, `scan_user`,\n  `page_numbers`, `scanner`, ...\n  [gbastien]\n\n0.4 (2017-12-21)\n----------------\n\n- Use the `consume` method from `imio.zamqp.core` to consume the message to\n  avoid duplicating code.\n  [gbastien]\n- Import `PdfReadError` from `PyPDF2`, `imio.helpers` uses it instead\n  deprecated `pyPdf`.\n  [gbastien]\n\n0.3 (2017-12-06)\n----------------\n\n- In field `after_scan_change_annex_type_to`, added possibility to select an\n  item_decision_annex on an item_annex and the other way round. This way the\n  annex can be turned from an item annex to an item decision annex\n  after scan process.\n  [gbastien]\n- Changed default values for `X` and `Y` coordinates used by the\n  `@@insert-barcode` view so it is inserted in the top right corner by default.\n  [gbastien]\n\n0.2 (2017-11-28)\n----------------\n\n- Added `scan_id` to `AMQPPMDocumentGenerationView.get_base_generation_context`.\n  [gbastien]\n\n0.1 (2017-11-27)\n----------------\n\n- Initial release.\n  [gbastien]\n- Added `@@insert-barcode` view.\n  [gbastien]\n- Make tests rely on PloneMeetingTestCase.\n  [gbastien]\n- Added possibility to change the `content_category` of an annex when it's\n  file is updated and make it configurable on the `ContentCategory` object thru\n  the `after_scan_change_annex_type_to` field.\n  [gbastien]\n- Use helper `imio.zamqp.pm.utils.next_scan_id_pm` that calls\n  `imio.zamqp.core.utils.next_scan_id` to be sure that relevant parameters are\n  always passed correctly.\n  [gbastien]",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "PloneMeeting specific methods to use amqp",
    "version": "0.18",
    "project_urls": {
        "Homepage": "https://github.com/imio/"
    },
    "split_keywords": [
        "plone",
        "python",
        "imio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7936aadff46ac136be5abb375ec57f89a2892d0d95ad9fe35d9a4b8d6da5ec2d",
                "md5": "57008623498042759e94d0a1e588686a",
                "sha256": "251df7ce46d4d42edcbe035241dbd6cd7ee71a1dacdcb8f56665c0723de52f0f"
            },
            "downloads": -1,
            "filename": "imio.zamqp.pm-0.18.tar.gz",
            "has_sig": false,
            "md5_digest": "57008623498042759e94d0a1e588686a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 50106,
            "upload_time": "2023-10-27T08:23:05",
            "upload_time_iso_8601": "2023-10-27T08:23:05.247342Z",
            "url": "https://files.pythonhosted.org/packages/79/36/aadff46ac136be5abb375ec57f89a2892d0d95ad9fe35d9a4b8d6da5ec2d/imio.zamqp.pm-0.18.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-27 08:23:05",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "imio.zamqp.pm"
}
        
Elapsed time: 0.13010s