add contents webservice#5938
Conversation
There was a problem hiding this comment.
...if the file exists, else returns False....
|
Is there a roadmap/IPEP for the contents web-service? I'm working to port bookstore notebook manager to IPython 2 and I feel like I'm late to the party. |
|
I'm still working on the IPEP, I'll link to it when I put it up. |
|
I've posted the current state of the IPEP |
|
Thanks @minrk |
|
The |
As of ipython/ipython#5938: Use contents webservice instead of own websocket server.
Remove own websocket service and use new IPython contents webservice: ipython/ipython#5938
|
Rebased, and review should be addressed. I don't have anything else planned to do here. |
|
I do have other review that I am doing on this one - will try to get On Mon, Jun 30, 2014 at 10:54 AM, Min RK notifications@github.com wrote:
Brian E. Granger |
|
That is BDFL... On Mon, Jun 30, 2014 at 10:56 AM, Brian Granger ellisonbg@gmail.com wrote:
Brian E. Granger |
|
Happy to hop in, I can ask @minrk to fill me in the details to save you time, @ellisonbg. |
|
Sorry, misunderstood the ping... Yes, please stick to that letter ;) |
|
Rebased on require. |
There was a problem hiding this comment.
Should the contents manager have methods/parameters for things like "does this exist and is it a notebook", or "load this, throwing an error if it is not a notebook"?
There was a problem hiding this comment.
I don't think it's necessary. The caller can always check the type field in the model if it's desired.
minimal functional changes, committing because tests are passing.
- missed some s/notebook/file/ in docstrings - manager doesn’t sort contents
can’t copy directories
avoids 404 on /files for visiting a nonexistent notebook
a few more notebook mentions in docstrings, and inappropriate use of setdefault.
and reuse it in /nbconvert/html/… closes ipython#6137
- clarified docstrings and errors - still more notebook/file renames - configurable untitled names - copy_from can be full path - fix running, upload, new-tab behaviors in dashboard Yay, review!
- recognize 201 as success (dataType must not be 'json') - support uploading non-notebook files (b64-encoded)
- fix is_hidden always returning True on nonexistent files - create hidden dir fails with 400 - don't read binary files twice - logging improvements - dialog on invalid notebook upload - warn about disabled `--save`
|
Merged, yay! |
|
Great work! On Thu, Jul 31, 2014 at 12:25 PM, Min RK notifications@github.com wrote:
Brian E. Granger |
add contents webservice
This mainly renames the 'notebooks' service to 'contents' and teaches it about regular files. There is no longer special treatment of directories, just different forms for
content. Tree view now shows all files.As usual, modeled on GitHub contents API.
I will enumerate the changes to the models and API, but the gist:
formatkey will bejson,text, orbase64, describingcontentcontentwill be