gpt4 book ai didi

migration - 迁移 ATFile 时出现 plone.app.blob RuntimeError

转载 作者:行者123 更新时间:2023-12-01 18:29:21 26 4
gpt4 key购买 nike

我正在将 Blob 迁移到 3.2.1 站点,但收到“RuntimeError:调用 Python 对象时超出最大递归深度”错误。 @@blob-file-migration 期间的某些文件。

我找到了这个http://svn.eionet.europa.eu/projects/Zope/ticket/4190看起来他们通过创建自定义迁移器解决了图像的这个问题。

有什么线索吗?回溯如下。

  File "/home/simahawk/dev/plone/plone3/projx/src/plone.app.blob/src/plone/app/blob/content.py", line 113, in setFile
mutator = self.getField('file').getMutator(self)
File "/home/simahawk/dev/plone/plone3/buildout/eggs/Products.Archetypes-1.5.10-py2.4.egg/Products/Archetypes/BaseObject.py", line 241, in getField
return self.Schema().get(key)
File "/home/simahawk/dev/plone/plone3/buildout/eggs/Products.Archetypes-1.5.10-py2.4.egg/Products/Archetypes/BaseObject.py", line 828, in Schema
schema = ISchema(self)
File "/home/simahawk/dev/plone/plone3/projx/parts/zope2/lib/python/zope/app/component/hooks.py", line 96, in adapter_hook
return siteinfo.adapter_hook(interface, object, name, default)
File "/home/simahawk/dev/plone/plone3/buildout/eggs/archetypes.schemaextender-2.1.1-py2.4.egg/archetypes/schemaextender/extender.py", line 143, in cachingInstanceSchemaFactory
key = IUUID(context, str(id(context)))
File "/home/simahawk/dev/plone/plone3/projx/parts/zope2/lib/python/zope/app/component/hooks.py", line 96, in adapter_hook
return siteinfo.adapter_hook(interface, object, name, default)
RuntimeError: maximum recursion depth exceeded in cmp
2013-03-06 10:16:49 INFO ATCT.migration Rolling back to last safe point

最佳答案

当使用 Products.contentmigration 从 Plone 3.x 迁移到 Plone 4.x 时,我遇到了同样的错误。 plone.app.blob 迁移中似乎存在错误。我们进行此自定义迁移是为了绕过递归错误:http://svn.eionet.europa.eu/projects/Zope/browser/trunk/Products.EEAPloneAdmin/trunk/Products/EEAPloneAdmin/Extensions/ImageFS2Image.py?rev=29656

关于migration - 迁移 ATFile 时出现 plone.app.blob RuntimeError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15244244/

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