我正在使用Plone 4.1和FacultyStaffDirectory 3.0。我的buildout因错误而失败(archetypes.schema< 2.1)所以我固定了archetypes.schemaextender = 2.0.3并且我能够安装FSD 3.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
答案 0 :(得分:3)
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),您会找到包裹作者的联系电子邮件,要求他们这样做。
答案 1 :(得分:0)
我们正在更新FacultyStaffDirectory for 4.1。 3.1版本将在4.0之前删除对Plone的支持,因此我们花了一些时间来清理模板和设置代码中积累的大量内容。如果您喜欢冒险,SVN主干位于http://weblion.psu.edu/svn/weblion/weblion/Products.FacultyStaffDirectory/trunk/。