Package: collective.eeafaceted.batchactions
collective.eeafaceted.batchactionsThis package gives the possibility to define batch actions on elements displayed in a eea.facetednavigation dashboardSource code @ GitHubReleases @ PyPIContinuous Integration @ Travis-CIHow it worksThis will display BrowserViews registered forcollective.eeafaceted.batchactions.interfaces.IBatchActionsMarkeror
an interface subclassing it at the bottom of a eea.facetednavigation dashboard.Using acollective.eeafaceted.z3ctableCheckBoxColumn, you will be able to select elements to tigger the batch action on.Batch actions are overridable from a faceted navigation container to another if necessary.InstallationTo installcollective.eeafaceted.batchactionsyou simply addcollective.eeafaceted.batchactionsto the list of eggs in your buildout, run buildout and restart Plone.
Then, installcollective.eeafaceted.batchactionsusing the Add-ons control panel.Changelog1.14 (2023-09-04)InBaseARUOBatchActionForm._apply, return the elements that were actually
updated so it may be used when overriding the base view.
[gbastien]Avoided exception when a field value is None and we want to get a list or set
[sgeulette]1.13 (2023-07-12)AddedBaseARUOBatchActionForm, a class factorizing the action thatadd/remove/update/overwritevalues on an attribute of an object
(originally used for theLabelsBatchActionForm) so it is easier to reuse
for other similar actions.LabelsBatchActionFormis now based on thatBaseARUOBatchActionForm.
[gbastien]Activateddelete-batch-actionfor zope admin
[sgeulette]1.12 (2023-06-27)Added action toUpdate WF role mappings.
Movedavailable_permissionfunctionality fromContactBaseBatchActionFormtoBaseBatchActionFormso it is available for any action.
AddedBaseBatchActionForm.available_for_zope_adminthat makes an action
only available to the Zope admin.
[gbastien]MakeUpdateWFRoleMappingsActionFormuseimio.helpers.workflow.update_role_mappings_for.
[gbastien]1.11 (2022-05-06)Avoided exception when referer url contains non ascii char.
[sgeulette]1.10 (2022-02-10)Corrected UnicodeDecodeError on transition title.
[sgeulette]1.9 (2021-12-06)Checked permission on context (in ContactBaseBatchActionForm).
[sgeulette]1.8 (2021-07-16)Highlight message about number of elements that will be updated
by the action on the popup.
[gbastien]1.7 (2021-07-16)Adapted code to be able to display several tables on same page
(and so several batchactions viewlets):Added possibility to define the name of theCheckBoxColumn(stillselect_itemby default);Introduce idea of section for the viewlet and the batch actions so it is
possible to display different actions on different viewlets or different
views of same context.[gbastien]Added methodBaseBatchActionForm._final_updatecalled when every otherupdatemethods have been called.
[gbastien]AddedBaseBatchActionForm.apply_button_titleattribute to formalize
management ofapplybutton title, that will beApplyby default but that
may be changed to fit the current batch action.
[gbastien]AddedDeleteBatchActionForma delete elements batch action.
[gbastien]Requireplone.formwidget.masterselect<2.0.0as it is only forPlone5.2+/Py3.
[gbastien]1.6 (2020-12-21)After action applied, do not reload the entire page,
just reload the current faceted results.
[gbastien]UseCheckBoxFieldWidgetinsteadSelectFieldWidgetto manage labels to
(un)select inLabelsBatchActionFormto avoid manipulation withCTRL+clickfor selection. Adapted and rationalized translations.
[gbastien]Add acollective.fingerpointingentry when applying action to know
which action was applied on how much elements.
[gbastien]1.5 (2020-04-23)Make sure elements are treated in receiveduidsorder. Need to rely onimio.helpersto usecontent.uuidsToCatalogBrains(ordered=True).
[gbastien]1.4 (2019-11-25)Added view to change labels. (button is not added)
[sgeulette]Added base view to change a collective.contact.widget field.
[sgeulette]1.3 (2019-05-16)Moved methodbrowser.views.brains_from_uidstoutils, added helper methodutils.listify_uidsthat turns the data uids that is a string with each UID
separated by a comma into a real python list.
[gbastien]Display number of elements affected by action in the batch action form description.
[gbastien]1.2 (2019-03-08)Added weight attribute on batch action forms to order them.
[sgeulette]Improved brains_from_uids
[sgeulette]Added utils method
[sgeulette]1.1 (2018-08-31)Don’t apply changes if form errors
[sgeulette]1.0 (2018-06-20)Moved js variables tocollective.eeafaceted.z3ctable.
[gbastien]0.7 (2018-06-06)Render batch action form in overlay by default, but otherwise with form ‘overlay’ attribute set to False.
[sgeulette]0.6 (2018-01-06)Added condition on apply button.
[sgeulette]Added _update_widgets method
[sgeulette]0.5 (2018-01-05)Some changes to made it working with a simple z3c.table.
[sgeulette]0.4.1 (2017-12-01)Fixed english po file.
[gbastien]0.4 (2017-12-01)Addedcollective_eeafaceted_batchactions_js_variables.jsthat allows to
translate theno_selected_itemsmessage.
[gbastien]0.3 (2017-11-30)RenamedBatchActionFormtoBaseBatchActionFormto show that it is the base
form to inherit from to build new batch action.  Make it inherit fromForminsteadEditForm.
[gbastien]Refactored the way form is updated and applied : two methods are there to be
overrided :_updatethat is called in theupdateprocess and_applythat
is called byhandleApply.  This way it is easy to build an new action
without having to think about basic default behavior.
[gbastien]In theTransitionBatchActionForm, sort selectable transitions alphabetically.
[gbastien]0.2 (2017-11-24)UsegetMultiAdapterinsteadrestrictedTraversewhen getting the form
in the viewlet to speed up things.
[gbastien]Added attributebutton_with_iconto a batch action, if set to True,
a particular CSS class is added to the button so it can be skinned
with an icon easily.
[gbastien]Register abatch_actions.cssresource for basic styling.
[gbastien]0.1 (2017-11-23)Initial release.
[IMIO]