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.29.0 (2026-11-26)

  • Renamed ConcatenateAnnexesBatchActionForm to ExportPDFBatchActionForm for consistency with ExportPDFForm, the button msgid concatenate-annexes-batch-action-but is renamed to export-pdf-batch-action-but so the batch action view must be registered as export-pdf-batch-action. Other concatenate_annexes_* msgids are renamed as well: concatenate_annexes_batch_action_descr to export_pdf_batch_action_descr, concatenate_annexes_pdf_read_error to export_pdf_read_error and concatenate_annexes_pdf_too_large_error to export_pdf_too_large_error. Request keys concatenate_annexes_item_pdf_error_url (set when a PDF can not be read) and concatenate_annexes_pdf_error_url (returned by render) did not match, both are now export_pdf_error_url. Field annex_types is replaced by field annexes that works like DownloadElementsAnnexesBatchActionForm.annexes: it lists annexes of selected elements (not excluded by _check_element) using the vocabulary defined in annexes_vocabulary (imio.annex.export_pdf_elements by default, so non PDF and only previewable annexes are disabled), every selectable annexes are selected by default and it is sortable, annexes are exported in the selected order. Max total size is checked on selected annexes. Hooks _annex_types_vocabulary and _element_annexes were removed, use annexes_vocabulary, _annexes_filters or _element_terms instead. Logic managing field annexes is shared in ElementsAnnexesMixin. [gbastien]

  • Added ExportZipForm, the Zip counterpart of ExportPDFForm to download selected annexes of an element: needs to be registered as @@export-zip-form by the using applications. Zip writing moved to the zip_annexes and unique_zip_path functions, ExportPDFForm exports through the _do_export hook. Added _default_annexes and _annex_from_term hooks in ElementsAnnexesMixin. [sgeulette]

  • DownloadAnnexesBatchActionForm.do_zip sets the Zip response headers once the Zip file is generated so the redirect done when zipping raises LargeZipFile is not served as application/zip. ExportZipForm also manages LargeZipFile and displays an error instead of failing. [gbastien]

  • Zip logic shared by DownloadAnnexesBatchActionForm and ExportZipForm moved to ZipAnnexesMixin, so ExportZipForm gets the _max_total_size, _zip_filename, _unique_zip_path and zipfiles hooks. _total_size and do_zip now take the annexes parameter, do_zip manages LargeZipFile and returns None in this case. Added _check_max_total_size(annexes) that displays an error when max total size is exceeded. [gbastien]

  • Max total size check shared by ZipAnnexesMixin and ExportPDFBatchActionForm moved to MaxTotalSizeMixin (_max_total_size, _total_size(annexes) and _check_max_total_size(annexes)), the displayed error is defined by too_large_error_msg. [gbastien]

  • Fixed export_pdf_batch_action_descr French translation (wrong closing <p> tag, size limit is about selected annexes, greyed annexes explained) and removed the misleading “accept pop-ups” sentence from the Zip download description, the file is downloaded without opening a new window. [gbastien]

  • Fixed export_pdf_descr French translation (ExportPDFForm), use “export” wording, selectable elements are documents (not only annexes), explained that they may be reordered by drag and drop and that generating the PDF may take a few seconds, like for export_pdf_batch_action_descr. [gbastien]

  • ExportPDFForm (and so ExportZipForm) button apply_export_pdf (Apply) is renamed to download_export_pdf (Download, collective.eeafaceted.batchactions domain) like for ExportPDFBatchActionForm, so the button id is now form-buttons-download_export_pdf. [gbastien]

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.29.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.29.0
File Size Uploaded Provenance Actions
imio_annex-2.29.0.tar.gz 81.6 kB Without provenance Details for imio_annex-2.29.0.tar.gz

Built distribution (wheel)

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

Total release size: 164.0 kB

Release files / imio_annex-2.29.0.tar.gz

Download URL imio_annex-2.29.0.tar.gz
Size 81.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bbb39d62bfeb94abc5d2bcb42de86198de3b8c695ecbd9ef2335f7ef9afdd39d
BLAKE2b-256 checksum
How to use checksums
7bdb666ea8f21a788d720cf894fd97e5274876815b3c894aaf784ddf4495bd11
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.29.0-py3-none-any.whl

Download URL imio_annex-2.29.0-py3-none-any.whl
Size 82.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd8634268b7de119b05ea04fcd3132624e70e25c7f34d0a97921747644f84a24
BLAKE2b-256 checksum
How to use checksums
dd4626b1ef1ee0eb3aa0070a9e3009c746fe5166bf59bfbaf2b4449c9900ae72
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.29.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