New theme product gives “ValueError: Theme my.theme is not available”

怎甘沉沦 提交于 2019-12-10 22:09:05

问题


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/profiles/default/theme.xml http://pastie.org/9142470


回答1:


  • Create an egg with the diazotheme-template of zopeskel:

    zopeskel diazotheme your.theme

  • Add theme.xml in profiles/default with the content according to the docs you pointed to.

  • 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.

  • Remove everything in your.theme/your/theme/diazo_resources and bump your static-files (possbibly exported of an online-generated theme) in it.




回答2:


configure.zcml should not be in the src/hccrems.theme/hccrems/theme/profiles directory, it should be in the src/hccrems.theme/hccrems/theme directory.

Is that a mistake in your question? Or is that how the theme was generated? If so, that is a bug.

Also, please provide a complete traceback.



来源:https://stackoverflow.com/questions/23472811/new-theme-product-gives-valueerror-theme-my-theme-is-not-available

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!