6c59eea4215e38cb1253b6172e776cf7a4978ad3
The mail server mostly doesn't use the intrinsic features of `PyOpenSSLContext`, instead it pretty much just uses the underlying `OpenSSL.SSL.Context`, just through the wrapper. The only thing it actually uses from `PyOpenSSLContext` is `load_cert_chain`, and since we are using a keyfile and are not using a password this is equivalent to *two* function calls. Just perform those two calls directly, remove all the indirections, and remove the unnecessary import. Bonus content: since 2.0 `load_cert_chain` reraises the inner errors as `ssl.SSLError` which we don't handle, so we avoid this extra issue. This was discovered because from 2.0.0 to 2.0.4 the `contrib.pyopenssl` module was marked as deprecated (it was undeprecated in 2.0.5) but regardless its use is an unnecessary complication here. closes odoo/odoo#137198 X-original-commit: e534bbed78a80d1ba0c8edd22e039e5cfb50e613 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%