Question

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

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top