comparison MoinMoin/action/AttachFile.py @ 4626:25532a36f2b5

AttachFile: reordered imports
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 02 Mar 2009 02:09:10 +0100
parents 9275fb7a2bc2
children 83483f4e26cb
comparison
equal deleted inserted replaced
4625:1c60c378eb1a 4626:25532a36f2b5
25 2005-2007 MoinMoin:ReimarBauer, 25 2005-2007 MoinMoin:ReimarBauer,
26 2007-2008 MoinMoin:ThomasWaldmann 26 2007-2008 MoinMoin:ThomasWaldmann
27 @license: GNU GPL, see COPYING for details. 27 @license: GNU GPL, see COPYING for details.
28 """ 28 """
29 29
30 import os, time, zipfile, mimetypes, errno, datetime 30 import os, time, zipfile, errno, datetime
31 from StringIO import StringIO 31 from StringIO import StringIO
32 32
33 from MoinMoin import log 33 from MoinMoin import log
34 logging = log.getLogger(__name__) 34 logging = log.getLogger(__name__)
35 35
36 from MoinMoin import config, wikiutil, packages 36 # keep both imports below as they are, order is important:
37 from MoinMoin import wikiutil
38 import mimetypes
39
40 from MoinMoin import config, packages
37 from MoinMoin.Page import Page 41 from MoinMoin.Page import Page
38 from MoinMoin.util import filesys, timefuncs 42 from MoinMoin.util import filesys, timefuncs
39 from MoinMoin.security.textcha import TextCha 43 from MoinMoin.security.textcha import TextCha
40 from MoinMoin.events import FileAttachedEvent, send_event 44 from MoinMoin.events import FileAttachedEvent, send_event
41 from MoinMoin.support import tarfile 45 from MoinMoin.support import tarfile