This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Replacing and deleting files in a zipfile archive.
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: alanmcintyre, davidfraser, georg.brandl, nevdelap, sf-robot
Priority: normal Keywords: patch

Created on 2003-03-10 15:08 by nevdelap, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
zipfile.diff nevdelap, 2003-03-10 15:10 Diff with current released zipfile.diff. I'm sorry I haven't got time right now to test with the latest CVS version. If that's a problem maybe I can test with the latest version soon.
Messages (10)
msg42978 - (view) Author: Nev Delap (nevdelap) Date: 2003-03-10 15:08
Addition of replace, replacestr and delete methods into 
zipfile.py.
msg42979 - (view) Author: Nev Delap (nevdelap) Date: 2003-03-10 15:14
Logged In: YES 
user_id=730416

The file upload say "Successful" but the file isn't listed!? I've 
tried it several times and yes I've checked the checkbox.
msg42980 - (view) Author: Nev Delap (nevdelap) Date: 2003-03-10 15:15
Logged In: YES 
user_id=730416

The file upload say "Successful" but the file isn't listed!? I've 
tried it several times and yes I've checked the checkbox.
msg42981 - (view) Author: Nev Delap (nevdelap) Date: 2003-03-10 15:16
Logged In: YES 
user_id=730416

.
msg42982 - (view) Author: Nev Delap (nevdelap) Date: 2003-03-10 15:19
Logged In: YES 
user_id=730416

OK, so after refreshing it finally decided to show the files I'd 
added.
msg42983 - (view) Author: David Fraser (davidfraser) Date: 2004-05-11 10:24
Logged In: YES 
user_id=221678

This patch works fine on Python 2.3, if you just add the line
                del self.NameToInfo[name]
before the return in delete
(and the first HUNK with author info isn't applied)
Unfortunately I can't add a file for some reason...
nevdelap, could you update the bug for Python 2.3?
msg42984 - (view) Author: David Fraser (davidfraser) Date: 2004-05-11 14:57
Logged In: YES 
user_id=221678

Note that there is a problem with using StringIO files as
zipfiles with this as they fail to truncate properly - see
bug 951915
msg42985 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-03-07 00:45
This patch doesn't apply anymore to current SVN, so it's going to be closed unless someone updates it.
msg42986 - (view) Author: Alan McIntyre (alanmcintyre) * (Python committer) Date: 2007-03-07 03:09
Since it seems I'm poking around in the zipfile module quite a bit lately, I'll see if I can update this patch, and add some tests and documentation updates. 
msg42987 - (view) Author: SourceForge Robot (sf-robot) Date: 2007-03-21 02:20
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
History
Date User Action Args
2022-04-10 16:07:32adminsetgithub: 38139
2003-03-10 15:08:24nevdelapcreate