我想用来transmogrifier
将一个 Plone 4 站点的一小段摘录复制到另一个站点。我按照 quintagroup 文档中的说明进行操作,例如这里。
我将两者都添加collective.transmogrifier
到quintagroup.transmogrifier
了我的构建中:
[instance]
eggs +=
Products.Marshall
collective.transmogrifier
quintagroup.transmogrifier
zcml +=
collective.transmogrifier
quintagroup.transmogrifier
但是,安装的 1.4 版本collective.transmogrifier
还不够,因为它缺少模块traverse
中的功能utils
:
File ".../eggs/plone.app.transmogrifier-1.3-py2.7.egg/plone/app/transmogrifier/atschemaupdater.py", line 8, in <module>
from collective.transmogrifier.utils import traverse
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File ".../parts/instance/etc/site.zcml", line 15.2-15.55
ZopeXMLConfigurationError: File ".../parts/instance/etc/package-includes/027-quintagroup.transmogrifier-configure.zcml", line 1.0-1.70
ZopeXMLConfigurationError: File ".../eggs/quintagroup.transmogrifier-0.5-py2.7.egg/quintagroup/transmogrifier/configure.zcml", line 11.4-11.50
ZopeXMLConfigurationError: File ".../eggs/plone.app.transmogrifier-1.3-py2.7.egg/plone/app/transmogrifier/configure.zcml", line 9.2-12.8
ImportError: cannot import name traverse
我collective.transmogrifier = 1.5
在我的, 中指定了versions.cfg
,然后将(为什么?)eggs/quintagroup.transmogrifier-0.5-py2.7.egg/EGG-INFO/requires.txt
中坚持的更改为collective.transmogrifier<1.5
collective.transmogrifier<=1.5
重建并重新启动后,我能够quintagroup.transmogrifier
在 quickinstaller 视图中添加。但是,当我尝试在Generic Setup Tool中导出站点时,我失败了:
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.GenericSetup.tool, line 583, in manage_exportSelectedSteps
Module Products.GenericSetup.tool, line 1038, in _doRunExportSteps
Module quintagroup.transmogrifier.exportimport, line 72, in exportSiteStructure
Module collective.transmogrifier.utils, line 118, in constructPipeline
Module quintagroup.transmogrifier.sitewalker, line 32, in __init__
Module collective.transmogrifier.utils, line 225, in __init__
AttributeError: Transmogrifier instance has no attribute 'configuration_id'
default
我之前是否保存了导出配置文件并没有什么区别。
是否缺少某些配置步骤,或者是否有某种collective.transmogrifier <1.5
限制原因?在承担选择白名单内容的任务之前,我想看看这项工作......