odoo/openerp/addons
Olivier Dony e74c011a60 [FIX] ir.mail_server: SMTP user and pass should be passed as bytes to login()
Passing a unicode used to work in Python 2.5 but that
changed in 2.6 due to a change in the hmac module.
In any case the various RFCs that describe such
authentication mechanism do specify that UTF-8 encoded
values should be used, so we should be safe coercing
the user and passsword to UTF-8 bytes strings.
And of course it should not change anything for
the ASCII passwords out there anyway.

For references, see:
- Zope bug https://bugs.launchpad.net/zope.sendmail/+bug/597143
- Python issue http://bugs.python.org/issue5285
- http://tools.ietf.org/html/draft-ietf-sasl-crammd5-10#section-4

bzr revid: odo@openerp.com-20120312174348-iiqfa2toupn3udr3
2012-03-12 18:43:48 +01:00
..
base [FIX] ir.mail_server: SMTP user and pass should be passed as bytes to login() 2012-03-12 18:43:48 +01:00
__init__.py [IMP] openerp.addons: openerp.addons is used instead of 2012-01-09 13:41:20 +01:00
base_quality_interrogation.py [REF] renamed openerp-server.py to openerp-server. 2011-03-24 10:50:12 +01:00