view .hgignore @ 5901:b9450db6c129

Attachment handler: catch all Zip-related errors I had faced the problem with attached .ppt file: MoinMoin tried to check if the file is a Zip file, but zipfile module throwed BadZipfile("Bad magic number for central directory"). Since, according to http://docs.python.org/dev/library/zipfile.html zipfile doesn't have a common base exception we can try to handle, we can only enumerate all possible exceptions. Currently, they are zipfile.BadZipfile, zipfile.LargeZipFile and RuntimeError. With Python 3.2 there will be zipfile.BadZipFile. Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 08 Dec 2012 22:54:04 +0100
parents 12d27670e274
children
line wrap: on
line source
.*\.py[co]$
^dist/
^tests/wiki/
^wiki/underlay/
^wiki/data/edit-log
^wiki/data/event-log
^wiki/data/user/
^wiki/data/cache/
^wikiconfig_local.*
^wikiserverconfig_local.*
^MoinMoin/i18n/POTFILES(\.in)?$
.coverage
^.project
^.pydevproject
^.settings
^MANIFEST
.DS_Store