我更改了原型属性(字段)名称,现在我收到权限错误。我能做些什么?
我将内容类型中的属性(字段)命名为“字符串”而不是“公司”。
我已经安装了我的产品,看到此错误后,我在内容类型类中更改了它,重新安装了产品,运行更新安全设置并更新目录。但我不断收到:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了问题。我更改了内容类,但没有更改内容类型界面。
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 -*-
oninterfaces.py
as well. I did agrep string
on my product directory and found it.