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

Replacing and deleting files in a zipfile archive. #38139

Closed
nevdelap mannequin opened this issue Mar 10, 2003 · 10 comments
Closed

Replacing and deleting files in a zipfile archive. #38139

nevdelap mannequin opened this issue Mar 10, 2003 · 10 comments
Labels
stdlib Python modules in the Lib dir

Comments

@nevdelap
Copy link
Mannequin

nevdelap mannequin commented Mar 10, 2003

BPO 700858
Nosy @birkenfeld
Files
  • zipfile.diff: 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.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2007-03-21.02:20:13.000>
    created_at = <Date 2003-03-10.15:08:24.000>
    labels = ['library']
    title = 'Replacing and deleting files in a zipfile archive.'
    updated_at = <Date 2007-03-21.02:20:13.000>
    user = 'https://bugs.python.org/nevdelap'

    bugs.python.org fields:

    activity = <Date 2007-03-21.02:20:13.000>
    actor = 'sf-robot'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2003-03-10.15:08:24.000>
    creator = 'nevdelap'
    dependencies = []
    files = ['5080']
    hgrepos = []
    issue_num = 700858
    keywords = ['patch']
    message_count = 10.0
    messages = ['42978', '42979', '42980', '42981', '42982', '42983', '42984', '42985', '42986', '42987']
    nosy_count = 5.0
    nosy_names = ['georg.brandl', 'sf-robot', 'davidfraser', 'alanmcintyre', 'nevdelap']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue700858'
    versions = ['Python 2.2']

    @nevdelap
    Copy link
    Mannequin Author

    nevdelap mannequin commented Mar 10, 2003

    Addition of replace, replacestr and delete methods into
    zipfile.py.

    @nevdelap nevdelap mannequin closed this as completed Mar 10, 2003
    @nevdelap nevdelap mannequin added the stdlib Python modules in the Lib dir label Mar 10, 2003
    @nevdelap nevdelap mannequin closed this as completed Mar 10, 2003
    @nevdelap nevdelap mannequin added the stdlib Python modules in the Lib dir label Mar 10, 2003
    @nevdelap
    Copy link
    Mannequin Author

    nevdelap mannequin commented Mar 10, 2003

    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.

    1 similar comment
    @nevdelap
    Copy link
    Mannequin Author

    nevdelap mannequin commented Mar 10, 2003

    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.

    @nevdelap
    Copy link
    Mannequin Author

    nevdelap mannequin commented Mar 10, 2003

    Logged In: YES
    user_id=730416

    .

    @nevdelap
    Copy link
    Mannequin Author

    nevdelap mannequin commented Mar 10, 2003

    Logged In: YES
    user_id=730416

    OK, so after refreshing it finally decided to show the files I'd
    added.

    @davidfraser
    Copy link
    Mannequin

    davidfraser mannequin commented May 11, 2004

    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?

    @davidfraser
    Copy link
    Mannequin

    davidfraser mannequin commented May 11, 2004

    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

    @birkenfeld
    Copy link
    Member

    This patch doesn't apply anymore to current SVN, so it's going to be closed unless someone updates it.

    @alanmcintyre
    Copy link
    Mannequin

    alanmcintyre mannequin commented Mar 7, 2007

    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.

    @sf-robot
    Copy link
    Mannequin

    sf-robot mannequin commented Mar 21, 2007

    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).

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant