#10521: notebook upload of zipped worksheets can't deal with multiple worksheets
with the same name
------------------------+---------------------------------------------------
Reporter: jason | Owner: jason, mpatel, was
Type: defect | Status: needs_info
Priority: major | Milestone: sage-4.7.1
Component: notebook | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Jason Grout
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by ddrake):
attachment:download_worksheets.2.zip is a zip file of the kind that ltw
described. I created two worksheets with the same name but with different
contents (either "This is the first worksheet" or "This is the second
worksheet").
I made a mistake with attachment:download_worksheets.zip that is perhaps
instructive: I opened the zipfile produced by the notebook (version 4.7)
in Ubuntu's Archive Manager, and when I use "Save As" to save it to a
file, I get the zip file you see in attachment:download_worksheets.zip.
So my guess is that either (1) the zip file spec doesn't really support
having two files with the same name in the same directory, or (2) the zip
tools being used don't properly handle these files. Since we can't control
what zip tools users use, I propose that when the notebook creates the zip
file, it fixes up the .sws filenames so that they are all unique. (That
is, we fix this on the "creation end", and not on the "consumption end")
Sebastien, what did you do in the Flask notebook?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10521#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.