Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Apps
-
HD-Enabler:Wirecloud
Description
Created question in FIWARE Q/A platform on 17-05-2016 at 14:05
Please, ANSWER this question AT http://stackoverflow.com/questions/37276368/fiware-wirecloud-bug-custom-theme-is-not-a-valid-wirecloud-theme
Question:
FIWARE Wirecloud Bug; <custom theme> is not a valid WireCloud theme
Description:
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.
created the directory structure in the example
created a init.py with one line: parent = "wirecloud.defaulttheme"
created a
_variables.scss and pasted the example into it. Put the file in babblerTheme/static/css/
created a header.png image and placed it in babblerTheme/static/images/logos/
Then updated settings.py with the name of our basic theme with the setting: THEME_ACTIVE = "babblerTheme"
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?
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
5h 59m | 1 | Backlog Manager | 17/May/16 9:07 PM | |||||
|
3h | 1 | Backlog Manager | 18/May/16 12:07 AM | |||||
|
5d 11h 19m | 1 | Álvaro Arranz | 23/May/16 11:26 AM |