diff 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
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Sun Oct 16 15:35:06 2005 +0000
+++ b/MoinMoin/action/AttachFile.py	Sun Oct 16 16:01:50 2005 +0000
@@ -640,9 +640,9 @@
     if not filename: return # error msg already sent in _access_file
 
     attachment_path = getAttachDir(request, pagename)
-    single_file_size = 2.0 * 1000**2
-    attachments_file_space = 200.0 * 1000**2
-
+    single_file_size = request.cfg.unzip_single_file_size
+    attachments_file_space = request.cfg.unzip_attachments_space
+    
     files = _get_files(request, pagename)
 
     msg = ""