comparison MoinMoin/action/AttachFile.py @ 113:7785febd9530

Refactored unzipping settings into multiconfig. Untested. imported from: moin--main--1.5--patch-115
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Sun, 16 Oct 2005 16:01:50 +0000
parents 8b3945dbbb4d
children de898247fbff
comparison
equal deleted inserted replaced
112:902ef76b6e5c 113:7785febd9530
638 638
639 filename, fpath = _access_file(pagename, request) 639 filename, fpath = _access_file(pagename, request)
640 if not filename: return # error msg already sent in _access_file 640 if not filename: return # error msg already sent in _access_file
641 641
642 attachment_path = getAttachDir(request, pagename) 642 attachment_path = getAttachDir(request, pagename)
643 single_file_size = 2.0 * 1000**2 643 single_file_size = request.cfg.unzip_single_file_size
644 attachments_file_space = 200.0 * 1000**2 644 attachments_file_space = request.cfg.unzip_attachments_space
645 645
646 files = _get_files(request, pagename) 646 files = _get_files(request, pagename)
647 647
648 msg = "" 648 msg = ""
649 if files: 649 if files:
650 fsize = 0.0 650 fsize = 0.0