我更改了原型属性(字段)名称,现在我收到权限错误。我能做些什么?

发布于 2024-11-27 00:42:10 字数 1199 浏览 1 评论 0原文

我将内容类型中的属性(字段)命名为“字符串”而不是“公司”。

我已经安装了我的产品,看到此错误后,我在内容类型类中更改了它,重新安装了产品,运行更新安全设置并更新目录。但我不断收到:

Module Products.CMFPlone.utils, line 392, in _createObjectByType
Module Products.CMFCore.TypesTool, line 290, in _finishConstruction
Module Products.CMFCore.CMFCatalogAware, line 148, in notifyWorkflowCreated
Module Products.CMFCore.WorkflowTool, line 291, in notifyCreated
Module Products.DCWorkflow.DCWorkflow, line 346, in notifyCreated
Module Products.DCWorkflow.DCWorkflow, line 430, in _changeStateOf
Module Products.DCWorkflow.DCWorkflow, line 529, in _executeTransition
Module Products.DCWorkflow.DCWorkflow, line 389, in updateRoleMappingsFor
Module Products.DCWorkflow.utils, line 64, in modifyRolesForPermission
Module AccessControl.Permission, line 92, in setRoles
AttributeError: string

由于我已经从我的内容类型中删除了该字符串属性,因此如何删除该字符串属性?我已经重新安装了产品,重新启动了我的实例,但我仍然遇到同样的问题。有想法吗?我可以删除我的 Data.fs,因为它是开发计算机,但如果它发生在生产站点中,则这不是一个选择。

PS:当我运行 bin/instance fg 时:

2011-07-28 19:01:59 WARNING Init Class mynamespace.mypackage.content.mycontent.MyContent has a security declaration for nonexistent method 'string'

I named an attribute (field) in a content-type 'string' instead of 'company'.

I've installed my product and after seeing this error, I changed it in my content type class, reinstalled the product, ran update security settings and update catalog. But I keep getting:

Module Products.CMFPlone.utils, line 392, in _createObjectByType
Module Products.CMFCore.TypesTool, line 290, in _finishConstruction
Module Products.CMFCore.CMFCatalogAware, line 148, in notifyWorkflowCreated
Module Products.CMFCore.WorkflowTool, line 291, in notifyCreated
Module Products.DCWorkflow.DCWorkflow, line 346, in notifyCreated
Module Products.DCWorkflow.DCWorkflow, line 430, in _changeStateOf
Module Products.DCWorkflow.DCWorkflow, line 529, in _executeTransition
Module Products.DCWorkflow.DCWorkflow, line 389, in updateRoleMappingsFor
Module Products.DCWorkflow.utils, line 64, in modifyRolesForPermission
Module AccessControl.Permission, line 92, in setRoles
AttributeError: string

How do I delete this string attribute that is persisted somewhere in ny ZODB since I've already removed it from my content type? I've reinstalled the product, restarted my instance, but I keep getting the same problem. Ideas? I can delete my Data.fs since it's a development machine, but if it happened in a production site, this wouldn't be an option.

PS: When I ran bin/instance fg:

2011-07-28 19:01:59 WARNING Init Class mynamespace.mypackage.content.mycontent.MyContent has a security declaration for nonexistent method 'string'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蒲公英的约定 2024-12-04 00:42:10

我发现了问题。我更改了内容类,但没有更改内容类型界面。

paster 也在 interfaces.py 上创建一个 # -*- 模式定义在此处 -*- 。我在我的产品目录中执行了 grep string 并找到了它。

I found the problem. I changed in my content class, but didn't change in my content type interface.

paster creates a # -*- schema definition goes here -*- on interfaces.py as well. I did a grep string on my product directory and found it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文