We have Wirecloud installed on our own server, using the Docker image on Docker Hub (latest = 0.9.1). Using the instructions here: https://wirecloud.readthedocs.io/en/latest/development/platform/themes/ we tried to follow the 'Basic themes' section. But is it is not clear where the theme should be placed on the file system.
1. created the directory structure in the example
2. created a file __init__.py with one line: parent = "wirecloud.defaulttheme"
3. created a file _variables.scss and pasted the example into it. Put the file in babblerTheme/static/css/
4. created a header.png image and placed it in babblerTheme/static/images/logos/
5. Then updated settings.py with the name of our basic theme with the setting: THEME_ACTIVE = "babblerTheme"
6. Then ran python manage.py collectstatic --noinput
we get the error:
...File "/usr/local/lib/python2.7/site-packages/wirecloud/platform/themes.py", line 82, in get_theme_metadata' raise ValueError("%s is not a valid WireCloud theme" % theme_name) ValueError: babblerTheme is not a valid WireCloud theme
We tried putting the theme directory in the following places without any luck:
/opt/wirecloud_instance/wirecloud_instance/babblerTheme
/opt/wirecloud_instance/babblerTheme
/usr/local/lib/python2.7/site-packages/wirecloud/babblerTheme
All three places, same uninformative error.
This should be really easy, but i already spent more than half a day on it. I can work around this bug by changing the contents of the default theme, but i expect that will lead to problems when upgrading Wirecloud.
What should we be doing to get Wirecloud to pick up our custom theme?
