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

fix js pythonisme #4425

Merged
merged 1 commit into from Oct 25, 2013
Merged

fix js pythonisme #4425

merged 1 commit into from Oct 25, 2013

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Oct 23, 2013

But POST request is now wrong.

Investigating.

@ellisonbg
Copy link
Member

@minrk upload should be a PUT right?

@Carreau
Copy link
Member Author

Carreau commented Oct 23, 2013

@minrk upload should be a PUT right?

Yes, Probably.

@minrk
Copy link
Member

minrk commented Oct 23, 2013

Yes, upload with name is a PUT.

@@ -71,7 +71,7 @@ var IPython = (function (IPython) {
reader.readAsText(f);
var name_and_ext = utils.splitext(f.name);
var nbname = name_and_ext[0];
var file_ext = name_and_ext[-1];
var file_ext = name_and_ext[name_and_ext.length-1];
Copy link
Member

Choose a reason for hiding this comment

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

should just be 1, no need for length - 1

pythonnism + PUT instead of POST
@Carreau
Copy link
Member Author

Carreau commented Oct 25, 2013

Updated, still I think put should refuse to PUT is something is already there right ?
It does not seem to be the case.

@minrk
Copy link
Member

minrk commented Oct 25, 2013

Should it? I don't think so, that's not what the spec describes.

@minrk
Copy link
Member

minrk commented Oct 25, 2013

👍 to merge as-is, since it's a relatively important feature that's just broken in master. We can work out the overwrite behavior in the future.

@Carreau
Copy link
Member Author

Carreau commented Oct 25, 2013

Yes, re-read the reference rest api, and put replace if already existing.
travis test passes, merging.

Carreau added a commit that referenced this pull request Oct 25, 2013
Fix impossibility to upload notebooks.
@Carreau Carreau merged commit 377a7c2 into ipython:master Oct 25, 2013
@Carreau Carreau deleted the fix-js-python branch October 25, 2013 18:41
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Fix impossibility to upload notebooks.
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.

None yet

3 participants