Open Rico29 opened 2 years ago
Tried to integratye it, but I have the following error when clicking on a file link :
2022-07-04 11:28:31,773 ERROR [Zope.SiteErrorLog:252][waitress-0] 1656926911.76340820.8628247376370974 https://plone.priv.xxx.fr/base-de-connaissances/test.odt/file_view
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 371, in publish_module
Module ZPublisher.WSGIPublisher, line 274, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 63, in call_object
Module zope.browserpage.simpleviewclass, line 41, in __call__
Module Products.Five.browser.pagetemplatefile, line 126, in __call__
Module Products.Five.browser.pagetemplatefile, line 61, in __call__
Module zope.pagetemplate.pagetemplate, line 135, in pt_render
Module Products.PageTemplates.engine, line 378, in __call__
Module z3c.pt.pagetemplate, line 176, in render
Module chameleon.zpt.template, line 302, in render
Module chameleon.template, line 215, in render
Module chameleon.utils, line 53, in raise_with_traceback
Module chameleon.template, line 192, in render
Module 40dfebbffb1d9fd0b345b2da023ce3fb, line 564, in render
Module f5ed48a4c1ef374786b0246ad51010f0, line 860, in render_master
Module f5ed48a4c1ef374786b0246ad51010f0, line 1509, in render_content
Module zope.contentprovider.tales, line 76, in __call__
Module zope.viewlet.manager, line 157, in update
Module zope.viewlet.manager, line 163, in _updateViewlets
Module plone.app.layout.viewlets.content, line 57, in update
Module plone.memoize.view, line 59, in memogetter
Module plone.app.layout.globals.context, line 242, in actions
Module Products.CMFPlone.ActionsTool, line 85, in listActionInfos
Module Products.CMFCore.ActionInformation, line 212, in __getitem__
Module Products.CMFCore.Expression, line 53, in __call__
Module zope.tales.expressions, line 250, in __call__
Module Products.PageTemplates.Expressions, line 225, in _eval
Module Products.PageTemplates.Expressions, line 143, in render
Module Products.PageTemplates.ZRPythonExpr, line 82, in call_with_ns
Module Products.CMFCore.FSPythonScript, line 129, in __render_with_namespace__
Module Shared.DC.Scripts.Bindings, line 349, in __render_with_namespace__
Module Shared.DC.Scripts.Bindings, line 372, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 349, in _exec
Module script, line 34, in externalEditorEnabled
- <FSPythonScript at /Plone/externalEditorEnabled used for /Plone/base-de-connaissances/test.odt>
- Line 34
AttributeError: 'RequestContainer' object has no attribute 'externalEditLink_'
- Expression: "provider:plone.belowcontentbody"
- Filename: ... one/Products/CMFPlone/browser/templates/main_template.pt
- Location: (line 100: col 70)
- Source: ...
^
- Expression: "context/@@main_template/macros/master"
- Filename: ... 3.7.egg/plone/app/contenttypes/browser/templates/file.pt
- Location: (line 6: col 21)
- Source: ... tal:use-macro="context/@@main_template/macros/master"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Arguments: template: <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7f5ed23169e8>
options: {}
args: ()
nothing: None
modules: <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter object at 0x7f5ed6c81e48>
request: <WSGIRequest, URL=https://plone.priv.xxx.fr/base-de-connaissances/test.odt/file_view>
view: <Products.Five.browser.metaconfigure.SimpleViewClass from /opt/plone_git/buildout.coredev/eggs/plone.app.contenttypes-2.2.3-py3.7.egg/plone/app/contenttypes/browser/templates/file.pt object at 0x7f5ed06b1cf8>
context: <File at /Plone/base-de-connaissances/test.odt>
views: <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7f5ecfe0b240>
here: <File at /Plone/base-de-connaissances/test.odt>
container: <File at /Plone/base-de-connaissances/test.odt>
root: <Application at >
traverse_subpath: []
user: <PloneUser 'rico29@xxx.fr'>
default: <DEFAULT>
repeat: <Products.PageTemplates.engine.RepeatDictWrapper object at 0x7f5ed35fb168>
loop: {}
target_language: None
translate: <function BaseTemplate.render.<locals>.translate at 0x7f5ed022f2f0>
macroname: 'master'
attrs: {}
Any help would be greatly appreciated ! Regards
Hello, is there any doc related to integration in plone5 ? Regards