gpt4 book ai didi

error-handling - 向用户添加共享权限时发生AttributeError

转载 作者:行者123 更新时间:2023-12-03 08:12:51 24 4
gpt4 key购买 nike

当我为任何用户分配新的共享权限级别时,

我得到这个错误

似乎任何文件夹或用户都会产生此错误。已经有一些具有共享权限的用户,这意味着以前曾经可以使用。我不确定从那时到现在发生了什么改变了这一点。

你们有没有遇到过这个问题?

错误日志:

Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.CMFCore.FSPythonScript, line 108, in __call__
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 164, in _exec
Module None, line 14, in folder_localrole_edit
- <FSPythonScript at /intranet/folder_localrole_edit used for /intranet/service-areas/management-services>
- Line 14
Module <string>, line 4, in _facade
Module Products.Hotfix_20070320, line 68, in _curried
Module Products.CMFCore.MembershipTool, line 437, in setLocalRoles
Module Products.Archetypes.CatalogMultiplex, line 70, in reindexObjectSecurity
Module Products.ZCatalog.CatalogBrains, line 52, in _unrestrictedGetObject
Module OFS.Traversable, line 187, in unrestrictedTraverse
- __traceback_info__: (['mailer', 'formfolder.2009-03-22.3253705634', 'FormFolder', 'portal_factory'], 'one-melville-brand-update-2009-1')
Module Products.Five.traversable, line 126, in __bobo_traverse__
AttributeError: one-melville-brand-update-2009-1

最佳答案

看来您的portal_catalog工具不一致。
这意味着您有目录条目(大脑),没有真实内容(Archetype对象)。

您可以通过“清除并重建”目录来解决此问题。

http://localhost:8080/${PATH_TO_PLONE}/portal_catalog/manage_catalogAdvanced -> Clear and rebuilt.



此操作可能需要很长时间,具体取决于您拥有多少内容。

简短说明您的情况似乎发生了什么:

在更改特定对象上的本地角色后,Plone尝试在对象本身和所有子对象上重新索引与安全性相关的门户目录索引。重新索引子内容时,它会尝试获取不存在的对象的某些数据(遍历时为 AttributeError)。

使用新的目录可以避免此类错误。

关于error-handling - 向用户添加共享权限时发生AttributeError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31200205/

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