-
Notifications
You must be signed in to change notification settings - Fork 949
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
Should we convert uploaded file metadata into Python types? #2727
Comments
Why not have both? Use a Bunch! :) https://github.com/ipython/traitlets/blob/master/traitlets/utils/bunch.py (That's what we use for the change argument in traitlets change notifications) |
Both suggestions sound good, especially if we want to stay close to the contents api: https://jupyter-notebook.readthedocs.io/en/stable/extending/contents.html#filesystem-entities |
As an xref, this might tie in with the datetime serialization in #2715. There, it is serialized along the pattern of |
I'll try and address this issue. |
Fixed in #2767. |
Following PRs #2724 and #2666 , the
FileUpload.value
traitlet looks like:It is defined as
List(Dict())
.We could consider the following, in increasing order of complexity:
lastModified
to be a datetime object. We should check browser compatibility on whether it's always expressed as a timestamp.notifying @jtpio , @jasongrout who have been working on this.
The text was updated successfully, but these errors were encountered: