创建了新的plone站点之后,我使用以下命令创建了新产品
../bin/zopeskel plone_basic dummy.work我在./dumy.work/src/dummy/work .then下创建了浏览器文件夹,我在configure.zcml文件中配置了浏览器文件夹,如下所示。
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:zcml="http://namespaces.zope.org/zcml"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="dummy.work">
<five:registerPackage package="." initialize=".initialize" />
<plone:static
directory="browser"
type="work"
name="dummy.work"
/>
<genericsetup:registerProfile
name="default"
title="dummy.work"
directory="profiles/default"
description="Installs the dummy.work package"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>
<include package=".browser" />
</configure>当我试图创建一个实例时,我得到的错误如下
ConfigurationError: ('Unknown directive', u'http://namespaces.plone.org/plone', u'static')有人能帮我解决这个问题吗?
发布于 2014-05-08 07:19:37
要使用plone:static指令,必须包括meta.zcml。
它被记录在https://pypi.python.org/pypi/plone.resource/的包文档中
You must do <include package="plone.resource" file="meta.zcml"/> before you can use the plone:static directive.因此:在使用<include package="plone.resource" file="meta.zcml"/>之前添加行plone:static。
https://stackoverflow.com/questions/23533465
复制相似问题