Zope / Plone 3 产品卸载问题

发布于 2024-08-17 05:10:34 字数 411 浏览 1 评论 0原文

的警告,

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 技术交流群。

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

发布评论

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

评论(2

逆光飞翔i 2024-08-24 05:10:34

在我看来,这里的问题是门户网站上存在这种类型的内容;因此卸载 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.

灵芸 2024-08-24 05:10:34

您可以尝试以下操作:

  • 卸载、删除、构建。
  • 转到 zope 根目录下的 ZMI,Control
    面板、产品。看看是否
    产品已列出。将其删除。
  • 重新启动。

这可能会让烦恼消失,如果产品提供简单的内容类型就足够了。但是,您应该检查是否有一些奇怪的遗留问题,例如持久性实用程序。

如果您仍然遇到麻烦,zodbupdate 是一个很好的工具,可以帮助您找出问题所在。 IIRC 最新版本只能在 python 2.6 上运行,您应该使用早期版本。

You can try the following:

  • Uninstall, remove, buildout.
  • Go to ZMI at the zope root, Control
    Panel, Products. See if the the
    product is listed. Remove it.
  • Restart.

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.

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