Skip to content

Commit

Permalink
Moved DownloadAnnexesBatchActionForm to imio.annex
Browse files Browse the repository at this point in the history
  • Loading branch information
gbastien committed May 20, 2021
1 parent 4fa36c1 commit 8ce6359
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/Products/PloneMeeting/browser/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
<browser:page
for="Products.PloneMeeting.interfaces.IMeetingContentBatchActionsMarker"
name="download-annexes-batch-action"
class=".views.DownloadAnnexesBatchActionForm"
class="imio.annex.browser.views.DownloadAnnexesBatchActionForm"
permission="zope2.View" />
<browser:page
for="Products.PloneMeeting.interfaces.IMeetingContentBatchActionsMarker"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<div class="content" tal:content="structure python: view.table_render(portal_type='annex')"></div>

<div id="viewlet-below-categorized-elements"
tal:condition="python: view.table.values"
tal:define="dummy python: context.REQUEST.set('categorized_tab', view)"
tal:content="structure provider:collective.iconifiedcategory.belowcategorizedelements" />

Expand Down Expand Up @@ -70,6 +71,7 @@
<div class="content" tal:content="structure python: view.table_render(portal_type='annexDecision')"></div>

<div id="viewlet-below-categorized-elements"
tal:condition="python: view.table.values"
tal:define="dummy python: context.REQUEST.set('categorized_tab', view)"
tal:content="structure provider:collective.iconifiedcategory.belowcategorizedelements" />

Expand Down
21 changes: 0 additions & 21 deletions src/Products/PloneMeeting/browser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2050,27 +2050,6 @@ def _apply(self, **data):
api.portal.show_message(msg, request=self.request)


class DownloadAnnexesBatchActionForm(BaseBatchActionForm):

label = _CEBA("Download annexes")
button_with_icon = False
section = "annexes"

def __init__(self, context, request):
super(DownloadAnnexesBatchActionForm, self).__init__(context, request)
self.tool = api.portal.get_tool('portal_plonemeeting')
self.cfg = self.tool.getMeetingConfig(context)

def available(self):
""" """
return True

def _apply(self, **data):
""" """
# uids = listify_uids(data['uids'])
api.portal.show_message("Done " + data['uids'], request=self.request)


class PMDeleteBatchActionForm(DeleteBatchActionForm):

section = "annexes"
Expand Down

0 comments on commit 8ce6359

Please sign in to comment.