Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-6614

FIWARE.Question.Tech.Apps.ApplicationMashup.Software.ThemeIsNotValid

    Details

      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

        Hide
        backlogmanager Backlog Manager added a comment -

        2016-05-17 15:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-05-17 15:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2016-05-17 21:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-05-17 21:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2016-05-18 00:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-05-18 00:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: