Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
The import location is differnet in Python 3. This will need to be added to the compat.py file
#python 3
from io import StringIO
#python 2
from StringIO import StringIO
Contributor
|
Looks like a good start, I think the general design is right, but a few small changes required. Pinging @tomchristie as I think he will want to take a look at this (but perhaps not until after an update) |
First shot at enabling installation of theme via a url, specified by the
config param `theme_url`.
`theme_url` should point to a zip file online. The zip file will be
downloaded and unzipped to the `themes` folder.
Note that as of current implementation, `theme_url` installs the theme,
but does not use it, i.e. the `theme` parameter needs to be specified in
order for the newly installed theme to be used.
A point of consideration:
- Should we check if the theme already exists? This is to prevent
downloading every single time we run `config.py`
This test isn't that useful, and refers to a hardcoded url in one of my branches. Might want to consider if this test is even needed. Ref #179
Contributor
|
Happy to consider this with an updated PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First shot at enabling installation of theme via a url, specified by the config param
theme_url.theme_urlshould point to a zip file online. The zip file will be downloaded and unzipped to thethemesfolder.Note that as of current implementation,
theme_urlinstalls the theme, but does not use it, i.e. thethemeparameter needs to be specified in order for the newly installed theme to be used.A point of consideration:
- Should we check if the theme already exists? This is to prevent
downloading every single time we run
config.py