gpt4 book ai didi

view - Plone 4.3 - image_view 突然要我登录

转载 作者:行者123 更新时间:2023-12-01 06:41:27 25 4
gpt4 key购买 nike

每当我将图像(DAV 或 HTML)上传到我的 Plone 站点时,图像就会被上传和创建。我可以引用图像,它显示在文件夹“画廊” View 中。

但是,当我访问该图像以查看它时,Plone 说我没有上下文的权限(作为管理员)。

我从自定义模板中的错误中了解到这种行为,但我根本没有接触 image_view。

此实例的错误日志(在 Debug模式下)没有显示任何痕迹。

我重建了目录但没有成功。

在哪里可以查看和/或设置 image_view 的权限?

更新

好的,一定是主题相关的?!当我卸载我的主题时,一切正常。

更新二

是主题。特别是 theme_base。每当我在 Plone 中安装我的主题时,我都会看到 plonetheme.mytheme 作为 theme_base。当我将它切换到 Sunburst Theme 时,image_view 再次工作,但其他一切都没有。

我的 skins.xml 应该没问题:

<object name="mytheme_custom"
meta_type="Filesystem Directory View"
directory="plonetheme.mytheme:skins/mytheme_custom"/>
<skin-path name="plonetheme.mytheme" based-on="Sunburst Theme">
<layer name="mytheme_custom"
insert-after="custom"/>
</skin-path>

主题是在this tutorial之后完成的

更新三

从 ZMI 的 error_log 中删除 Unauthorized 后(感谢@mathias),我能够追踪并修复我的 main_template.pt 中有问题的行。现在可以了。非常感谢!

最佳答案

由于我的评论是这个问题的答案,所以我也将其添加为答案。

For better debug infos, please remove Unauthrorized (Exception) from the ignored exceptions in the error_log (ZMI).

Also make sure, debug mode and verbose security is on.

Security implementation should be python.

If you now trigger the error, you should see what's wrong.

关于view - Plone 4.3 - image_view 突然要我登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39604006/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com