[Erp5-report] r45024 gabriel - /erp5/trunk/utils/cloudooo/cloudooo/

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Apr 2 00:55:10 CEST 2011


Author: gabriel
Date: Sat Apr  2 00:55:10 2011
New Revision: 45024

URL: http://svn.erp5.org?rev=45024&view=rev
Log:
clean up the code

Modified:
    erp5/trunk/utils/cloudooo/cloudooo/paster_application.py
    erp5/trunk/utils/cloudooo/cloudooo/wsgixmlrpcapplication.py

Modified: erp5/trunk/utils/cloudooo/cloudooo/paster_application.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/paster_application.py?rev=45024&r1=45023&r2=45024&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/paster_application.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/paster_application.py [utf8] Sat Apr  2 00:55:10 2011
@@ -28,9 +28,7 @@
 
 import gc
 
-from os import path, mkdir
-import os
-import sys
+from os import path, mkdir, environ
 from cloudooo.wsgixmlrpcapplication import WSGIXMLRPCApplication
 from cloudooo.utils import utils
 
@@ -57,7 +55,7 @@ def application(global_config, **local_c
       variable_name = parameter_name[len(prefix):]
       if variable_name == 'PATH':
         # merge only for PATH
-        current_value = os.environ.get(variable_name, '')
+        current_value = environ.get(variable_name, '')
         if current_value:
           value = '%s:%s' % (value, current_value)
       environment_dict[variable_name] = value

Modified: erp5/trunk/utils/cloudooo/cloudooo/wsgixmlrpcapplication.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/wsgixmlrpcapplication.py?rev=45024&r1=45023&r2=45024&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/wsgixmlrpcapplication.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/wsgixmlrpcapplication.py [utf8] Sat Apr  2 00:55:10 2011
@@ -51,8 +51,6 @@ class WSGIXMLRPCApplication(object):
 
             length = int(environ['CONTENT_LENGTH'])
             data = environ['wsgi.input'].read(length)
-            max_chunk_size = 10 * 1024 * 1024
-            size_remaining = length
 
             # In previous versions of SimpleXMLRPCServer, _dispatch
             # could be overridden in this class, instead of in



More information about the Erp5-report mailing list