From 394f4a0d963bf5aabcdf746a241f1acc8b2a54a3 Mon Sep 17 00:00:00 2001 From: fngaha Date: Mon, 5 Jul 2021 17:40:52 +0200 Subject: [PATCH] fix documentviewer plone 5 compability from version 4 of documentviewer there is a browser folder --- src/collective/documentgenerator/browser/configure.zcml | 2 +- src/collective/documentgenerator/browser/overrides.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collective/documentgenerator/browser/configure.zcml b/src/collective/documentgenerator/browser/configure.zcml index ba5eaa68..120607c5 100644 --- a/src/collective/documentgenerator/browser/configure.zcml +++ b/src/collective/documentgenerator/browser/configure.zcml @@ -191,7 +191,7 @@ name="documentviewer" for="collective.documentgenerator.content.pod_template.IConfigurablePODTemplate" class="collective.documentgenerator.browser.overrides.DGDXDocumentViewerView" - template="templates/documentviewerdx.pt" + template="browser/templates/documentviewerdx.pt" permission="zope2.View" layer=".interfaces.ILayer" /> diff --git a/src/collective/documentgenerator/browser/overrides.py b/src/collective/documentgenerator/browser/overrides.py index 320796f8..fcf35117 100644 --- a/src/collective/documentgenerator/browser/overrides.py +++ b/src/collective/documentgenerator/browser/overrides.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from collective.documentgenerator.browser.views import ViewConfigurablePodTemplate -from collective.documentviewer.views import DXDocumentViewerView +from collective.documentviewer.browser.views import DXDocumentViewerView class DGDXDocumentViewerView(ViewConfigurablePodTemplate, DXDocumentViewerView):