Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update settings handler to parse complex URL paths. #19

Merged
merged 4 commits into from
Sep 29, 2017

Conversation

afshin
Copy link
Member

@afshin afshin commented Sep 14, 2017

Supports making API requests to the settings handler in with the new ID schema from jupyterlab/jupyterlab#2936

(This is a backward compatible API change.)

except Exception as e:
path = os.path.join(root_dir, section_name + ".json")

if make_dirs and parent_dir and not os.path.exists(parent_dir):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parent_dir would only be defined if there was a : in the section name (need to pre-define it outside of the try block).

@blink1073
Copy link
Contributor

Verified against jupyterlab/jupyterlab#2936 current master, thanks!

@blink1073 blink1073 merged commit aff1f81 into jupyterlab:master Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants