def application_unproxied(environ, start_response):
 if hasattr(threading.current_thread(), 'uid'):
  del threading.current_thread().uid
 if hasattr(threading.current_thread(), 'dbname'):
  del threading.current_thread().dbname
 with odoo.api.Environment.manage():
  for handler in [wsgi_xmlrpc, odoo.http.root]:
   result = handler(environ, start_response)
   if (result is None):
    continue
   return result
 response = 'No handler found.\n'
 start_response('404 Not Found', [('Content-Type', 'text/plain'), ('Content-Length', str(len(response)))])
 return [response]

def application_unproxied ( environ , start_response ) : if hasattr ( threading . current_thread ( ) , 'uid' ) : del threading . current_thread ( ) . uid if hasattr ( threading . current_thread ( ) , 'dbname' ) : del threading . current_thread ( ) . dbname with odoo . api . Environment . manage ( ) : for handler in [ wsgi_xmlrpc , odoo . http . root ] : result = handler ( environ , start_response ) if ( result is None ) : continue return result response = 'No handler found.\n' start_response ( '404 Not Found' , [ ( 'Content-Type' , 'text/plain' ) , ( 'Content-Length' , str ( len ( response ) ) ) ] ) return [ response ]
wsgi entry point .