新主题产品给出"ValueError:主题my.theme不可用". [英] New theme product gives "ValueError: Theme my.theme is not available"
问题描述
我已按照以下说明通过zopeskel创建了一个新主题 http://docs.plone.org/adapt-and-extend/theming /theme_product_with_diazo.html
I have created a new theme via zopeskel using these instructions http://docs.plone.org/adapt-and-extend/theming/theme_product_with_diazo.html
无论如何尝试安装产品,我都会收到错误消息:
However trying to install the product, I get the error:
Module plone.app.theming.exportimport.handler, line 38, in importTheme
ValueError: Theme hccrems.theme is not available
我不确定我的主题缺少什么,因为我已经两次浏览了文档.
I'm not sure what my theme is missing as I have followed through the doc twice.
src/hccrems.theme/hccrems/theme/configure.zcml http://pastie.org/9142461
src/hccrems.theme/hccrems/theme/configure.zcml http://pastie.org/9142461
src/hccrems.theme/hccrems/theme/profiles/default/theme.xml http://pastie.org/9142470
src/hccrems.theme/hccrems/theme/profiles/default/theme.xml http://pastie.org/9142470
推荐答案
-
使用zopeskel的 diazotheme -模板创建一个鸡蛋:
Create an egg with the diazotheme-template of zopeskel:
zopeskel diazotheme your.theme
在配置文件/默认值中添加
theme.xml
,其内容根据您指向的文档而定.Add
theme.xml
in profiles/default with the content according to the docs you pointed to.在
your.theme/your/theme/configure.zcml
中,删除z3c.jbot-part,除非要使用它,否则需要将z3c.jbot添加为dep,并在配置文件中包含记录的meta.zcml-slug. .zcml.In
your.theme/your/theme/configure.zcml
remove the z3c.jbot-part, unless you want to use it, then you'll need to add z3c.jbot as a dep and include the documentated meta.zcml-slug in your configure.zcml.删除您的.theme/your/theme/diazo_resources中的所有内容,并在其中破坏您的静态文件(可能是在线生成的主题导出的).
Remove everything in your.theme/your/theme/diazo_resources and bump your static-files (possbibly exported of an online-generated theme) in it.
这篇关于新主题产品给出"ValueError:主题my.theme不可用".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!