无法创建从 Sunburst 主题模板化的 Plone 主题
我在让粘贴生成的主题产品在我的生产 Plone 4.0 服务器中工作时遇到问题,所以我想现在 4.1 已经发布了,我会再试一次。我现在遇到了一个不同的问题:主题没有显示在加载项列表中。这就是我所做的:
从 Enfold 安装了适用于 Windows 的 Plone 4.1
下载了 ez_setup.py,并使用 Plone 的嵌入式 python 运行它
运行已安装的 easy_install 以将最新的 ZopeSkel 安装到嵌入式中Python。
mkdir src ;光盘源; ..\python\Scripts\paster create -t plone3_theme plonetheme.lt
回答了问题,以便我获得基于 plone4 Sunburst 主题的主题
否则我不会触及生成的代码中的任何内容。
cd plonetheme.lt; ....\python\python.exe setup.pydevelopment [不确定我是否需要这样做]
编辑 buildout.cfg 将 plonetheme.lt 添加到 Eggs 列表中,并添加: develop = src/plonetheme.lt
运行构建。它提到它可以找到 plonetheme.lt 包。
启动 Zeo 和 Plone 服务器
plonetheme.lt 没有出现在附加组件列表中
我能错过什么?我已经在 plone.org 上查阅了一些文档,并且还有 Martin Aspeli 的书。非常感谢。我还尝试将包装添加到 zcml slugs 中,但无济于事。
卢克
I have had problems getting a paster generated theme product to work in my production Plone 4.0 server, so I thought I would try again now that 4.1 is out. I'm now having a different problem: the theme just doesn't show up in the Add-ons list. Here's what I did:
Installed Plone 4.1 for Windows from Enfold
Downloaded ez_setup.py, and ran it with Plone's embedded python
Ran the installed easy_install to get the latest ZopeSkel installed into the embedded Python.
mkdir src ; cd src ; ..\python\Scripts\paster create -t plone3_theme plonetheme.lt
Answered the questions so that I'd get a theme based on the plone4 Sunburst theme
Otherwise I don't touch anything in that generated code.
cd plonetheme.lt ; ....\python\python.exe setup.py develop [not sure if I need to do this]
Edit the buildout.cfg to add plonetheme.lt to the eggs list, and added:
develop = src/plonetheme.ltRun buildout. It mentions that it can find the plonetheme.lt package.
Start Zeo and Plone servers
The plonetheme.lt does not appear in the list of Add-ons
What can I have missed? I've poured over the bits of documentation on plone.org and I have Martin Aspeli's books. Many thanks. I've also tried adding the packaging to the zcml slugs, to no avail.
Luke
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“cd plonetheme.lt ; ....\python\python.exe setup.pydevelopment [不确定我是否需要这样做]”
不,这是无用的
“编辑构建。 cfg 将 plonetheme.lt 添加到 Eggs 列表中,并添加:develop = src/plonetheme.lt"
您也需要将其添加到 zcml 列表中。
更多信息:
查看本指南的第 2 步:
http://plone.org/documentation/kb/add-ons/installing
"cd plonetheme.lt ; ....\python\python.exe setup.py develop [not sure if I need to do this]"
no this is useless
"Edit the buildout.cfg to add plonetheme.lt to the eggs list, and added: develop = src/plonetheme.lt"
you need to add it to the zcml list too.
More info:
Take a look at the step 2 of this guide:
http://plone.org/documentation/kb/add-ons/installing
您可以使用 buildout.eggtractor 尝试另一个解决方案
,或者如果您将构建粘贴到某个地方会更好...
You could try the another solution using buildout.eggtractor
Or better if you paste your buildout somewhere...