changeset 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 902ef76b6e5c
children 00a0fa898ed5
files MoinMoin/action/AttachFile.py MoinMoin/multiconfig.py
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
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 = ""
--- a/MoinMoin/multiconfig.py	Sun Oct 16 15:35:06 2005 +0000
+++ b/MoinMoin/multiconfig.py	Sun Oct 16 16:01:50 2005 +0000
@@ -387,6 +387,9 @@
 
     user_homewiki = 'Self' # interwiki name for where user homepages are located
 
+    unzip_single_file_size = 2.0 * 1000**2
+    unzip_attachments_space = 200.0 * 1000**2
+
     xmlrpc_putpage_enabled = 0 # if 0, putpage will write to a test page only
     xmlrpc_putpage_trusted_only = 1 # if 1, you will need to be http auth authenticated