Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/plone/app/layout/controlpanels/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
name="updateLinkIntegrityInformation"
for="plone.base.interfaces.IPloneSiteRoot"
class=".linkintegrity.UpdateView"
template="linkintegrity_update.pt"
template="templates/linkintegrity_update.pt"
permission="cmf.ManagePortal"
layer="plone.app.layout.interfaces.IPloneAppLayoutLayer"
/>

</configure>
24 changes: 1 addition & 23 deletions src/plone/app/layout/controlpanels/linkintegrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,7 @@


class DeleteConfirmationInfo(DeleteConfirmationInfoAPI):
template = ViewPageTemplateFile("linkintegrity_delete_confirmation_info.pt")
breach_count = {}

def __init__(self, context, request):
self.linkintegrity_enabled = linkintegrity_enabled()
self.context = context
self.request = request

def __call__(self, items=None):
if not self.linkintegrity_enabled:
return
if items is None:
if IPloneSiteRoot.providedBy(self.context):
# Checking the portal for breaches makes no sense.
return
else:
items = [self.context]
self.breaches = self.get_breaches(items)
return self.template()

def objects(self):
return [_("Objects in all"), _("Folders"), _("Published objects")]

template = ViewPageTemplateFile("templates/linkintegrity_delete_confirmation_info.pt")

class UpdateView(BrowserView):
"""Iterate over all catalogued items and update linkintegrity-information."""
Expand Down
Loading