Le 29/03/2012 21:48, Claude Petit a écrit :
If I understand, for OpenERP 6.1.1, it will be :

from werkzeug.contrib.fixers import ProxyFix
import openerp-server
openerp-server.wsgi_app = ProxyFix(openerp-server.wsgi_app)
openerp-server.???????()


I have a doubt. I think I will have no choice to modify OpenERP's
original code. So I will implement SSL directly, or do you have a better
idea ?


Well, I have no idea how OpenERP works.

Flask is a Python web framework based on Werkzeug, something that helps make web applications. Werkzeug is library of tools to help work with WSGI. WSGI is a convention / protocol so that various web servers can talk to various Python applications. WSGI servers use WSGI applications, but WSGI middlewares (such as ProxyFix) can come in-between.


A quick search shows me that OpenERP is based on WSGI but apparently not Flask. I couldn’t find that information, but if you came here I assume it uses Werkzeug.

You would need to find the Python object that represents the WSGI application for OpenERP, pass it to ProxyFix, and use the result instead of the original application. The OpenERP community will probably be able to tell you more. Ask about adding a WSGI middleware.

Regards,
--
Simon Sapin

--
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to