克隆主题中的错误
我安装了 Plone 4.1.3,我正在尝试制作一个主题。我看到这个链接讨论了这个问题:
http://www. treebrolly.com/blog/turbo-plone-theming-with-xdv-diazo
我按照命令操作。当我运行此命令时,
$ ./bin/instance fg
它说
Error: error opening file /home/hosam/plone413/zinstance/parts/instance/etc/zope.conf: [Errno 2] No such file or directory: '/home/hosam/plone413/zinstance/parts/instance/etc/zope.conf'
For help, use ./bin/instance -h
hosam@hosam-desktop:~/plone413/zinstance$
我注意到当我运行此命令时,
$ ./bin/buildout -c demo.cfg
此目录及其内容被删除 /home/hosam/plone413/zinstance/parts/instance/
所以这个错误出现在我看来,任何人都可以帮忙吗?
I installed Plone 4.1.3 and I am trying to make a theme. I saw this link talk about this issue:
http://www.treebrolly.com/blog/turbo-plone-theming-with-xdv-diazo
and I followed the commands. When I run this command
$ ./bin/instance fg
it says
Error: error opening file /home/hosam/plone413/zinstance/parts/instance/etc/zope.conf: [Errno 2] No such file or directory: '/home/hosam/plone413/zinstance/parts/instance/etc/zope.conf'
For help, use ./bin/instance -h
hosam@hosam-desktop:~/plone413/zinstance$
I noticed that when I run this command
$ ./bin/buildout -c demo.cfg
this directory and its contents are deleted /home/hosam/plone413/zinstance/parts/instance/
and so this error appears to me, Any can help??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您运行:
parts
文件夹应该被删除并重建(这很好)。您遇到的错误表明该命令未正确结束。尝试添加
-v
参数,这样您将获得更详细的输出,并且可以在此处提供完整的错误回溯
When you run :
the
parts
folder is supposed to be deleted and rebuilt (that's fine).The error you are facing says that this command doesn't end correctly. Try to add the
-v
parameterso you will have a more verbose output and you can provide here a complete error traceback
在不同的构建目录中设置 demo.cfg。查看您提到的博客条目,它是独立的,而不是与 zope/plone 实例共享相同的构建目录。
您可能需要考虑使用 plone.app.theming 而不是 XDV。最大的区别是 plone.app.theming 在 Plone 内部运行,不需要任何单独的构建。如果您不需要混合来自非 Plone 来源的内容,这确实会简化事情。
Set up your demo.cfg in a different buildout directory. Looking at the blog entry you mentioned, it's meant to standalone, not share the same buildout directory with a zope/plone instance.
You might want to consider using plone.app.theming instead of XDV. The big difference is that plone.app.theming runs inside Plone and doesn't require any separate build. That really simplifies things if you don't need to mix in content from non-Plone sources.