Skip to main content

imio.annex

Translations

This product has been translated into

  • French

Installation

Install imio.annex by adding it to your buildout:

[buildout]

...

eggs =
    imio.annex

and then running bin/buildout

Contribute

Support

If you are having issues, please let us know.

License

The project is licensed under the GPLv2.

Contributors

  • Martin Peeters, Original Author [Affinitic]

Changelog

2.28.0 (2026-11-16)

  • Moved PMCheckBoxFieldWidget from Products.PloneMeeting to imio.annex.widgets.checkbox.OrderableCheckBoxFieldWidget. [sgeulette]

  • Renamed AnnexesCheckBoxFieldWidget to the more generic OrderableCheckBoxFieldWidget as it may be used for any multi-valued field, the wrapping div CSS class is orderable_checkbox_widget and the “None.” msgid is checkbox_widget_no_values. [gbastien]

  • Moved ItemExportPDFForm from Products.PloneMeeting to imio.annex.browser.views.ExportPDFForm: needs to be registered as @@export-pdf-form by the using applications. [sgeulette]

  • Added ContainedAnnexesVocabulary and ExportPDFElementsVocabulary in imio.annex.vocabularies, with _prepare_annex_infos (filter/order the listed annexes) and _portal_type_title hooks. [sgeulette]

  • ContainedAnnexesVocabulary extra parameters (**kwargs) are passed to the _prepare_annex_infos hook. In term title, the annex part (arrow, icon, number, title, file size and what _check_disable_term adds) is rendered in a span.contained_annex_title and, when include_parent_title, the element title in a span.contained_annex_parent_title so it is possible to style it separately. Added parameter title_kwargs to ContainedAnnexesVocabulary, passed to the element Title method when include_parent_title, so it is possible to manage Title parameters depending on the context type. [gbastien]

  • Added _get_annexes, _annex_content, _check_element and _element_annexes hooks in ConcatenateAnnexesBatchActionForm. [sgeulette]

  • Added test infrastructure (testing.py and tests). [sgeulette]

  • OrderableCheckBoxWidget options get an odd/even CSS class (first option is odd), recomputed after a drag and drop when the widget is sortable. [gbastien]

  • Set DownloadAnnexesBatchActionForm.MAX_TOTAL_SIZE (Zip download, also used by DownloadElementsAnnexesBatchActionForm) to 250Mb. [gbastien]

  • Added DownloadElementsAnnexesBatchActionForm, a variant of DownloadAnnexesBatchActionForm that works on a dashboard of elements containing annexes (selected elements are the annexes containers). Field annexes lists annexes of selected elements using the vocabulary defined in annexes_vocabulary (imio.annex.contained_annexes by default, extra parameters may be passed using _element_terms), every downloadable annexes are selected by default, annexes that are only previewable are disabled. Max total size is checked on selected annexes when applying so the user may unselect annexes when it is exceeded. By default every annexes are stored at the same level in the Zip file, field annexes_by_folder (False by default) stores annexes of each element in a separate folder. Folder name (_zip_folder_name, element id by default) and filename prefix (_zip_filename_prefix, no prefix by default) may be overridden, it is made safe (no /, :, …, limited to MAX_ZIP_NAME_LENGTH characters). DownloadAnnexesBatchActionForm was refactored to ease this: annexes to download are computed by _get_annexes, path in the Zip file by _zip_path (duplicated paths are now made unique) and Zip file name by _zip_filename. [gbastien]

2.27.1 (2026-01-15)

  • Added collective.dms.scanbehavior dependency. [sgeulette]

2.26 (2025-12-16)

  • Adapted concatenate_annexes_batch_action_descr translation to use CSS class discreet like it is the case for other bacth actions description. [gbastien]

  • Update annex scanbehavior. [chris-adam]

  • Merged zamqp profile into default profile. [chris-adam]

2.25 (2025-10-13)

  • For DownloadAnnexesBatchActionForm and ConcatenateAnnexesBatchActionForm, manage MAX_TOTAL_SIZE in method _max_total_size so it is easy to override and to manage functionnal usecases (like different max size depending on current user). [gbastien]

  • Add sort_on parameter to utils.get_annexes_to_print so annexes can be sorted. [aduchene]

2.24 (2025-02-03)

  • Fixed DownloadAnnexesBatchActionForm to not download annexes that are only previewable (annexes for which show_download is False). [gbastien]

2.23 (2024-09-25)

  • Fixed XSS vulnerability in annexes table PrettyLinkColumn. [gbastien]

2.22 (2024-04-10)

  • Added parameter filters={“to_print”: True} to utils.get_annexes_to_print so it is possible to filter annexes to print. [gbastien]

  • Added concatenate annexes batch action to be able to produce a single PDF file from annex types of selected elements with two-sided management. Disabled by default (in configure.zcml). [gbastien]

2.21 (2023-12-11)

  • Use our own event ConversionReallyFinishedEvent instead collective.documentviewer’s ConversionFinishedEvent because it is called when converting information is still not set back to False and we need to have this information when an annex is updated and conversion is run again because in this case, successfully_converted is still True. [gbastien]

2.20 (2023-09-04)

  • Fixed conversion status update that was not working when using async conversion with collective.documentviewer. [gbastien]

  • Display action View preview when a preview is available. [gbastien]

2.19 (2023-08-24)

  • Adapted code to new parameter Category.show_preview in collective.iconifiedcategory. [gbastien]

2.18 (2022-06-14)

  • Added safe_utils.py that will only include safe utils. [gbastien]

  • Removed override of columns that was done to use collective.eeafaceted.z3ctable as now at is already the case. [gbastien]

2.17 (2022-04-26)

  • Fixed bug when adding an annexDecision because the content_category could not be retrieved. [gbastien]

2.16 (2022-04-22)

  • Check validateFileIsPDF before creating the annex to avoid orphan objects. [gbastien]

2.15 (2022-02-25)

  • Register the ObjectAddedEvent and ObjectModifiedEvent for IAnnex so it is not called for other interface. [gbastien]

2.14 (2022-02-03)

  • Accurate french translation for download-annexes-batch-action-but. [gbastien]

2.13 (2022-01-24)

  • Set DownloadAnnexesBatchActionForm.MAX_TOTAL_SIZE to 25Mb. [gbastien]

  • Explain in Zip download message that browser may ask to accept popup window. [gbastien]

  • Open file in new window when clicking on file title in annexes table. [gbastien]

  • Added a Download object_buttons displayed in annex actions_panel. [gbastien]

2.12 (2022-01-21)

  • Fixed utils.get_annexes_to_print, use image format (.png, .jpg, …) stored in annex collective.documentviewer annotation to know the path to traverse, this is useful in case image format changed in the global settings. [gbastien]

2.11 (2022-01-03)

  • Added annex.UID method to speed up getting the UID. [gbastien]

2.10 (2021-11-08)

  • Display the annex filename and scan_id in the categorized elemens table under the description. [gbastien]

2.9 (2021-07-16)

  • Override collective.iconifiedcategory columns category-column, creation-date-column, last-modification-column and filesize-column to use collective.eeafaceted.z3ctable based columns instead the original z3c.table columns so we have custom CSS classes. [gbastien]

  • Added DownloadAnnexesBatchActionForm, a batch action to download several annexes as a Zip file : - download is handled by an ajax request; - max download size is 50Mb by default. [gbastien]

2.8 (2021-04-23)

  • Fixed quickupload.ImioAnnexQuickUploadCapableFileFactory to make sure that thread lock is released like it is the case by default in uploadcapable.QuickUploadCapableFileFactory. This should avoid rare cases where instance is stuck while adding an annex. [gbastien]

2.7 (2020-05-08)

  • Test if current obj provides IAnnex instead IIconifiedCategorization as it is no longer provided to fix a bug in collective.iconifiedcategory. [gbastien]

2.6 (2020-04-23)

  • Avoid orphan annex left without a content_category when a ConflictError occurs during file upload because upload is done by a separate XHR request. [gbastien]

2.5 (2020-03-12)

  • Override collective.quickupload QuickUploadCapableFileFactory to avoid calling object added/created/modified events more than one time. [gbastien]

  • While adding an annex, call validateFileIsPDF to manage the pdf_only parameter as invariants are not called by default. [gbastien]

2.4 (2019-05-16)

  • Use imio.helpers default dexterity container view override on ContentCategoryConfiguration elements so contained ContentCategoryGroup objects are displayed on the view. [gbastien]

  • Fixed bug when adding an annex after CKeditor was used to add an image, the mediaupload type is stored in the SESSION and reused when another quick_upload is displayed (bug in collective.ckeditor?). When displaying the quick_upload to add annexes, we make sure mediaupload/typeupload attributes are removed from SESSION. [gbastien]

2.3 (2019-01-31)

  • Adapted collective.quickupload override so it work both with portlet and viewlet, manage content_category correctly and updated styles using FontAwesome to be compatible with FontAwesome 5 Free. Quickupload is displayed in an overlay. [gbastien]

2.2 (2018-11-20)

  • ActionsColumn was moved from imio.dashboard to collective.eeafaceted.z3ctable.columns. [gbastien]

2.1 (2018-09-04)

  • PrettyLinkColumn was moved from collective.eeafaceted.dashboard to collective.eeafaceted.z3ctable.columns. [gbastien]

2.0 (2018-06-20)

  • Rely on collective.eeafaceted.dashboard. [gbastien]

1.9 (2018-01-23)

  • Display icon of the @@historyview in the ActionsColumn. [gbastien]

  • Added parameter called_by to the AnnexFileChangedEvent so it can be used to specify where it was called from and so the registered event handler may use it if necessary. [gbastien]

  • Added Scan metadata (fields to_sign/signed hidden) behavior that inherits from collective.dms.scanbehavior.behaviors.behaviors.IScanFields behavior and hides fields to_sign and signed. [gbastien]

  • Apply relevant behaviors using purge=True so we are sure what behaviors are enabled. [gbastien]

  • Profile zamqp does not depend on imio.annex:default profile anymore so it is possible to reapply it without reapplying every imio.annex:default dependencies. [gbastien]

1.8 (2017-12-07)

  • Translate columns Title and Actions. [gbastien]

1.7 (2017-09-15)

  • Removed collective.dms.scanbehavior from behaviors added by the default profile. [gbastien]

1.6 (2017-08-29)

  • Enable Scan metadata behavior from collective.dms.scanbehavior for the annex type. We use it together with the Signed? functionnality available in collective.iconifiedcategory if [zamqp] is enabled. [gbastien]

  • Make sure an undefined content_category is not added when uploading elements using the quickupload portlet and content_category is not enabled on the portlet. [gbastien]

1.5 (2017-07-19)

  • In utils.get_annexes_to_print do not fail to get annex if a folder in the path to the annex is private. [gbastien]

1.4 (2017-03-08)

  • Added helper method utils.get_annexes_to_print to ease printings of annexes set to_print. [gbastien]

  • Make the title optional and get the filename if no title is specified [mpeeters]

  • As view is already overrided in collective.iconifiedcategory, we need to override it in overrides.zcml and override the one from collective.iconifiedcategory not the one from plone.dexterity. [gbastien]

1.3 (2017-01-25)

  • In annex_conversion_started/annex_conversion_finished, do not trigger ObjectModifiedEvent to avoid circular calls when another ObjectModifiedEvent event handler is managing conversion too. Just call update_categorized_elements that will update relevant informations in categorized_elements dict [gbastien]

1.2 (2017-01-12)

  • Extend collective.quickupload portlet to add content categories : #12556 [mpeeters]

  • Remove ‘description’ of portal_type ‘annex’ or it is displayed when adding/editing an annex [gbastien]

  • Take parameter sort_categorized_tab into account for the showArrows parameter : only show arrows if sort_categorized_tab is False [gbastien]

1.1 (2016-12-08)

  • Do not fail to display annex description in prettyLink column if it contains special characters. [gbastien]

1.0 (2016-12-02)

  • Initial release. [mpeeters]

Metadata

Release files for imio.annex 2.28.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imio.annex 2.28.0
File Size Uploaded Provenance Actions
imio_annex-2.28.0.tar.gz 77.8 kB Without provenance Details for imio_annex-2.28.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imio.annex 2.28.0
File Interpreter ABI Platform Actions
imio_annex-2.28.0-py3-none-any.whl Python 3 none any Details for imio_annex-2.28.0-py3-none-any.whl

Total release size: 157.4 kB

Release files / imio_annex-2.28.0.tar.gz

Download URL imio_annex-2.28.0.tar.gz
Size 77.8 kB
Tags Source
SHA-256 checksum
How to use checksums
09f4b70e3162f96d8dc83857250ef37fdc82c7b476a4703a7be467edd8f8f1d4
BLAKE2b-256 checksum
How to use checksums
3435532a169c409db26041af5a87eb7285ca7806f41c5dc7ba36e7bcca456850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / imio_annex-2.28.0-py3-none-any.whl

Download URL imio_annex-2.28.0-py3-none-any.whl
Size 79.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6c6507a0e9ad65876917b5c6d143970092972f70f0c45c9cfcd64c1006bb422
BLAKE2b-256 checksum
How to use checksums
46f8cca6d23153ab192fff3d6dd92c7b0998eb67ccea96af84a7ba52dc27372e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for imio.annex 2.28.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page