我使用的是Plone 4.1和FacultyStaffDirectory 3.0。我的构建失败了,出现了一个错误(archetypes.schema < 2.1),所以我锁定了archetypes.schemaextender = 2.0.3,这样我就能够安装FSD3.0了。然而,当我试图从Add-ons页面激活它时,我得到了以下错误:
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 575, in installProducts
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 512, in installProduct
__traceback_info__: ('FacultyStaffDirectory',)
Module Products.GenericSetup.tool, line 323, in runAllImportStepsFromProfile
__traceback_info__: profile-Products.FacultyStaffDirectory:default
Module Products.GenericSetup.tool, line 1074, in _runImportStepsFromContext
Module Products.GenericSetup.tool, line 245, in getSortedImportSteps
Module Products.GenericSetup.tool, line 251, in getImportStepMetadata
Module Products.GenericSetup.registry, line 295, in getStepMetadata
Module Products.GenericSetup.utils, line 104, in _resolveDottedName
__traceback_info__: Products.FacultyStaffDirectory.setuphandlers.unindexFSDTool
Module None, line 3, in <module>
ImportError: cannot import name DEFAULT_POLICIES发布于 2011-08-10 20:57:53
Plone 4.1的教职员工名录需要更新。Plone的升级指南中描述了需要更改的内容:http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.0-to-4.1/updating-add-on-products-for-plone-4.1/use-generic-setup-for-defining-versioning-policies
在FSD的下载页面( http://pypi.python.org/pypi/Products.FacultyStaffDirectory/3.0 ),你会发现一个联系电子邮件包的作者,要求他们这样做。
发布于 2011-08-11 22:08:40
我们正在更新4.1版本的FacultyStaffDirectory。3.1版本将在4.0之前移除对Plone的支持,因此我们需要一些时间来清理在模板和设置代码中积累的大量问题。如果你喜欢冒险,SVN trunk可以在http://weblion.psu.edu/svn/weblion/weblion/Products.FacultyStaffDirectory/trunk/上找到。
https://stackoverflow.com/questions/7010747
复制相似问题