Commit a050de5d authored by Gabriel Monnerat's avatar Gabriel Monnerat

clean up the code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45024 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b02a745
...@@ -28,9 +28,7 @@ ...@@ -28,9 +28,7 @@
import gc import gc
from os import path, mkdir from os import path, mkdir, environ
import os
import sys
from cloudooo.wsgixmlrpcapplication import WSGIXMLRPCApplication from cloudooo.wsgixmlrpcapplication import WSGIXMLRPCApplication
from cloudooo.utils import utils from cloudooo.utils import utils
...@@ -57,7 +55,7 @@ def application(global_config, **local_config): ...@@ -57,7 +55,7 @@ def application(global_config, **local_config):
variable_name = parameter_name[len(prefix):] variable_name = parameter_name[len(prefix):]
if variable_name == 'PATH': if variable_name == 'PATH':
# merge only for PATH # merge only for PATH
current_value = os.environ.get(variable_name, '') current_value = environ.get(variable_name, '')
if current_value: if current_value:
value = '%s:%s' % (value, current_value) value = '%s:%s' % (value, current_value)
environment_dict[variable_name] = value environment_dict[variable_name] = value
......
...@@ -51,8 +51,6 @@ class WSGIXMLRPCApplication(object): ...@@ -51,8 +51,6 @@ class WSGIXMLRPCApplication(object):
length = int(environ['CONTENT_LENGTH']) length = int(environ['CONTENT_LENGTH'])
data = environ['wsgi.input'].read(length) data = environ['wsgi.input'].read(length)
max_chunk_size = 10 * 1024 * 1024
size_remaining = length
# In previous versions of SimpleXMLRPCServer, _dispatch # In previous versions of SimpleXMLRPCServer, _dispatch
# could be overridden in this class, instead of in # could be overridden in this class, instead of in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment