Zope / Plone 3 产品卸载问题
的警告,
2010-01-06 22:43:50 WARNING OFS.Uninstalled Could not import class 'myclass
大家好,我卸载了之前添加的内容类型,之后我仍然收到来自模块“ns.archetype_name.content.content_type_name”
它不会导致明显的问题,但它让我担心,因为我以为我已经正确卸载了它,但找不到任何我留下痕迹的地方。我已经重新启动服务器,重新运行构建,以及我能想到的所有其他方法来尝试消除该消息,但无济于事。
我在网上读到,此警告表明 Data.fs 与有问题的软件包不同步,我应该重新安装丢失的软件包。我这样做了,错误消失了,但我真的很想消除错误和有问题的内容类型。
谢谢! 保罗
Hey all, I uninstalled a content type that I'd previously added and afterward I'm still getting a warning of
2010-01-06 22:43:50 WARNING OFS.Uninstalled Could not import class 'myclass
' from module 'ns.archetype_name.content.content_type_name'
It isn't resulting in obvious problems, but it concerns me since I thought I'd uninstalled it properly, and cannot find any place where I left a trace of it. I've restarted the server, re-run buildout, and everything else I can think to try to get rid of that message, to no avail.
I read online that this warning is an indication that the Data.fs is out of sync with the packages, in question, and that I should re-install the missing packages. I did that, and the error went away, but I'd really like to get rid of both the error and the content type in question.
Thanks!
Paul
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,这里的问题是门户网站上存在这种类型的内容;因此卸载 hte 包基本上会“孤立”这些项目,从而导致该错误。
It appears to me that the issue here was that there was content of that type on the portal; and so uninstalling hte package basically 'orphaned' those items, causing that error.
您可以尝试以下操作:
面板、产品。看看是否
产品已列出。将其删除。
这可能会让烦恼消失,如果产品提供简单的内容类型就足够了。但是,您应该检查是否有一些奇怪的遗留问题,例如持久性实用程序。
如果您仍然遇到麻烦,zodbupdate 是一个很好的工具,可以帮助您找出问题所在。 IIRC 最新版本只能在 python 2.6 上运行,您应该使用早期版本。
You can try the following:
Panel, Products. See if the the
product is listed. Remove it.
This will likely make the annoyance disappear and if the product was providing simple content types should be enough. However you should check for funky left-overs such as persistent utils.
A good tool to help you find out what's going on if you still run into trouble is zodbupdate. IIRC the latest version will only run on python 2.6, you should use the earlier ones.