[config] use bytes option type for max post length
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Apr 2010 13:51:16 +0200
changeset 5327 34a298eca917
parent 5323 329b4f6d18b4
child 5328 c51e8f62652a
[config] use bytes option type for max post length
etwist/twconfig.py
--- a/etwist/twconfig.py	Mon Apr 19 12:43:23 2010 +0200
+++ b/etwist/twconfig.py	Mon Apr 19 13:51:16 2010 +0200
@@ -52,9 +52,9 @@
           'group': 'main', 'level': WebConfiguration.mode == 'system'
           }),
         ('max-post-length',
-         {'type' : 'int',
-          'default': 100,
-          'help': 'maximum length of HTTP request, in Mo. Default to 100 Mo.',
+         {'type' : 'bytes',
+          'default': '100MB',
+          'help': 'maximum length of HTTP request. Default to 100 MB.',
           'group': 'main', 'level': 1,
           }),
         ('session-time',