gpt4 book ai didi

plone - 可以在 Plone 中使用 zope.publisher.browser.BrowserView 吗?

转载 作者:行者123 更新时间:2023-12-04 06:21:21 24 4
gpt4 key购买 nike

鉴于 Products.Five是一个集成层,使 Zope 组件架构 (ZCA) 在 Plone 中可用:

  • 是否可以在 Plone 中使用 zope.publisher.browser 或者我是否必须使用 Products.Five.browser 来导入 BrowserView?

  • 前者产生回溯:
    2015-06-04 14:47:02 ERROR Zope.SiteErrorLog 1433443622.720.549321919726 http://localhost:8080/Plone/@@hello
    Traceback (innermost last):
    Module ZPublisher.Publish, line 138, in publish
    Module ZPublisher.mapply, line 77, in mapply
    Module ZPublisher.Publish, line 48, in call_object
    Module zope.publisher.browser, line 968, in __call__
    NotImplementedError: Subclasses should override __call__ to provide a response body

    而后者“只是有效”

    最佳答案

    您需要使用 Products.Five.browser.BrowserView因为它负责在 Acquisition 中插入 View ,因此(以及其他)在 Zope 2 安全基础设施中。

    它继承自 AcquisitionBBB .

    Zope 2 安全性依赖于获取以仅在内容树的根部配置权限。

    关于plone - 可以在 Plone 中使用 zope.publisher.browser.BrowserView 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30652206/

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