Plone2pdf 附加组件,portalTransform 异常:ITransform
尝试在 Plone 4 中设置 plone2pdf。我已经下载了 Plone2pdf 存档,将其解压并将其放置在我的实例的产品目录下。我已通过 ./bin/instance fg 重新启动了实例。
现在,我可以在可用的附加组件页面中看到 Plone2pdf。但是,当我单击激活按钮时,它会抛出如下错误:
2011-11-16 00:58:28 ERROR Zope.SiteErrorLog 1321385308.830.136673010237
http://10.20.254.20:8090/iopextech/portal_quickinstaller/installProducts
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 575, in installProducts
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 498, in installProduct
- __traceback_info__: ('Plone2Pdf',)
Module Products.ExternalMethod.ExternalMethod, line 234, in __call__
- __traceback_info__: ((<PloneSite at /iopextech>,), {'reinstall': False}, (False,))
Module /usr/local/Plone/test/products/Plone2Pdf/Extensions/Install.py, line 20, in install
Module Products.GenericSetup.tool, line 323, in runAllImportStepsFromProfile
- __traceback_info__: profile-Products.Plone2Pdf:default
Module Products.GenericSetup.tool, line 1080, in _runImportStepsFromContext
Module Products.GenericSetup.tool, line 994, in _doRunImportStep
- __traceback_info__: pdf-transforms-various
Module Products.Plone2Pdf.setuphandlers, line 34, in setupPortalTransforms
Module Products.Plone2Pdf.setuphandlers, line 21, in installPdfTransform
Module Products.PortalTransforms.TransformEngine, line 485, in manage_addTransform
Module Products.PortalTransforms.Transform, line 100, in __init__
Module Products.PortalTransforms.Transform, line 125, in _tr_init
- __traceback_info__: ('Products.Plone2Pdf.html_to_pdf',)
TransformException: Invalid transform : ITransform is not implemented byProducts.Plone2Pdf.html_to_pdf.html_to_pdf
Plone2pdf 的版本是 0.4.3。可能是什么问题? Plone2pdf 是否与 Plone 4 兼容,因为我下载的 Plone2pdf 版本仅在 Plone 3 上进行了测试。但是下载页面显示,如果在 Plone 3 或更高版本上安装,请使用构建安装。
Trying to setup plone2pdf in Plone 4. I have downloaded the Plone2pdf archive, extracted it and placed it under the products directory of my instance. I have restarted the instance, by ./bin/instance fg.
Now, I can see the Plone2pdf in the available add-ons page. but, when I click on the activate button it throws an error as follows
2011-11-16 00:58:28 ERROR Zope.SiteErrorLog 1321385308.830.136673010237
http://10.20.254.20:8090/iopextech/portal_quickinstaller/installProducts
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 575, in installProducts
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 498, in installProduct
- __traceback_info__: ('Plone2Pdf',)
Module Products.ExternalMethod.ExternalMethod, line 234, in __call__
- __traceback_info__: ((<PloneSite at /iopextech>,), {'reinstall': False}, (False,))
Module /usr/local/Plone/test/products/Plone2Pdf/Extensions/Install.py, line 20, in install
Module Products.GenericSetup.tool, line 323, in runAllImportStepsFromProfile
- __traceback_info__: profile-Products.Plone2Pdf:default
Module Products.GenericSetup.tool, line 1080, in _runImportStepsFromContext
Module Products.GenericSetup.tool, line 994, in _doRunImportStep
- __traceback_info__: pdf-transforms-various
Module Products.Plone2Pdf.setuphandlers, line 34, in setupPortalTransforms
Module Products.Plone2Pdf.setuphandlers, line 21, in installPdfTransform
Module Products.PortalTransforms.TransformEngine, line 485, in manage_addTransform
Module Products.PortalTransforms.Transform, line 100, in __init__
Module Products.PortalTransforms.Transform, line 125, in _tr_init
- __traceback_info__: ('Products.Plone2Pdf.html_to_pdf',)
TransformException: Invalid transform : ITransform is not implemented byProducts.Plone2Pdf.html_to_pdf.html_to_pdf
The version of Plone2pdf is 0.4.3. What could be the problem ? is Plone2pdf compliant with Plone 4, because the Plone2pdf release which I downloaded was tested only with Plone 3. But the download page says, Use buildout to install if installing on Plone 3 or higher.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您安装附加产品时,您应该首先检查项目页面:
http://plone.org/products/ plone2pdf
来验证任何依赖性或限制。在这个特定的例子中,开发人员说该产品与 Plone <= 3 兼容。在这种情况下,除非您确切知道自己在做什么,并且准备好进行一些调试,否则您应该找到另一个声明的产品与 Plone 4 兼容。顺便说一句,在 Products 目录中安装产品是安装产品的旧方法,请查看 这里是一种更新的方式。
When you install an add-on product you should always first check the project page:
http://plone.org/products/plone2pdf
to verify any dependency or limitations. In this specific instance, the developer says that the product is compatible with Plone <= 3. In these case, unless you know exactly what you are doing and unless you are prepared for some debug, you should just find another product that is declared to be compatible with Plone 4. Btw installing product in the Products directory is an old way for installing product, take a look here a more up to date way.
这意味着该插件与 Plone4 不兼容,需要进行更新以支持与转换相关的更改。
文档:http://plone.org/documentation/kb/portal-transforms/transforms
This mean this addon is not compatible with Plone4 and need to be udpated to support changes related to transform.
documentation: http://plone.org/documentation/kb/portal-transforms/transforms