Re: [Tutor] removing file from zip archive.

2006-03-31 Thread w chun
> How can we remove one file inside of a zip archive? > > import zipfile > ziparchive = zipfile.ZipFile('test.odt', 'r') > xmldata = ziparchive.read('content.xml') > ziparchive.close <--- ADD "( )" HERE TOO Sophon, You can remove any number of files from a ZIP fil

Re: [Tutor] removing file from zip archive.

2006-03-29 Thread Keo Sophon
On Wednesday 29 March 2006 15:38, Tim Golden wrote: > | How can we remove one file inside of a zip archive? > | > | I'm using this method: > | > | import zipfile > | > | ziparchive = zipfile.ZipFile('test.odt', 'r') > | xmldata = ziparchive.read('content.xml') > | ziparchive.close >

Re: [Tutor] removing file from zip archive.

2006-03-29 Thread Tim Golden
| How can we remove one file inside of a zip archive? | | I'm using this method: | | import zipfile | | ziparchive = zipfile.ZipFile('test.odt', 'r') | xmldata = ziparchive.read('content.xml') | ziparchive.close (Warning: not my area of expertise, but...) Your example

[Tutor] removing file from zip archive.

2006-03-28 Thread Keo Sophon
Hi all, How can we remove one file inside of a zip archive? I'm using this method: import zipfile ziparchive = zipfile.ZipFile('test.odt', 'r') xmldata = ziparchive.read('content.xml') ziparchive.close Thanks in advance, Sophon _