Activity log for bug #581854

Date Who What changed Old value New value Message
2010-05-17 17:41:38 Leovega bug added bug
2010-05-18 07:35:05 Leovega description I am using Power Email 5.0.0.7 RC with python2.6 in openERP Sever 5.0.10 When I try to check outgoing Connection, this error is showed: "SMTP Server Login Error An error occurred : character mapping must return integer, None or unicode " Not always, I tried with two email accounts with a work and the other is not It's a problem with python2.6. I fixed writing in poweremail_core.py : def out_connection(self, cr, uid, ids, context={}): ........... try: if serv.has_extn('AUTH') or rec.smtpuname or rec.smtppass: serv.login(rec.smtpuname.encode('utf-8'), rec.smtppass.encode('utf-8')) .............. I am using Power Email 5.0.0.7 RC with python2.6 in openERP Sever 5.0.10 When I try to check outgoing Connection, this error is showed: "SMTP Server Login Error An error occurred : character mapping must return integer, None or unicode " stack trace : [2010-05-18 09:31:16,240] DEBUG:Connection:create cursor to "laboratoriosPruebas" [2010-05-18 09:31:16,240] DEBUG:ConnectionPool:ConnectionPool(used=0/count=1/max=64) Borrow connection to user=leo dbname=laboratoriosPruebas [2010-05-18 09:31:16,240] DEBUG:ConnectionPool:ConnectionPool(used=1/count=1/max=64) Existing connection found at index 0 [2010-05-18 09:31:16,427] DEBUG:ConnectionPool:ConnectionPool(used=1/count=1/max=64) Give back connection to user=leo dbname=laboratoriosPruebas [2010-05-18 09:31:16,428] DEBUG:ConnectionPool:ConnectionPool(used=0/count=1/max=64) Put connection to user=leo dbname=laboratoriosPruebas in pool /usr/lib/python2.5/site-packages/openerp-server/tools/misc.py:750: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 if hasattr(e, 'message'): /usr/lib/python2.5/site-packages/openerp-server/tools/misc.py:751: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 return ustr(e.message) [2010-05-18 09:31:16,429] DEBUG_RPC:exception:u'warning -- SMTP Server Login Error\n\nAn error occurred : character mapping must return integer, None or unicode ' [2010-05-18 09:31:16,738] DEBUG_RPC:service:'object' [2010-05-18 09:31:16,738] DEBUG_RPC:method:'execute' [2010-05-18 09:31:16,740] DEBUG_RPC:params:[01]: ('laboratoriosPruebas', [2010-05-18 09:31:16,740] DEBUG_RPC:params:[02]: 1, [2010-05-18 09:31:16,740] DEBUG_RPC:params:[03]: 'acere264', [2010-05-18 09:31:16,740] DEBUG_RPC:params:[04]: 'ir.attachment', [2010-05-18 09:31:16,740] DEBUG_RPC:params:[05]: 'search_count', [2010-05-18 09:31:16,741] DEBUG_RPC:params:[06]: [('res_model', '=', u'poweremail.core_accounts'), ('res_id', '=', 1)]) [2010-05-18 09:31:16,741] DEBUG:Connection:create cursor to "laboratoriosPruebas" Not always, I tried with two email accounts with one work and the other is not It's a problem with python2.6. I fixed writing in poweremail_core.py : def out_connection(self, cr, uid, ids, context={}): ...........                 try:                     if serv.has_extn('AUTH') or rec.smtpuname or rec.smtppass:                         serv.login(rec.smtpuname.encode('utf-8'), rec.smtppass.encode('utf-8')) ..............
2010-05-19 06:55:29 Leovega description I am using Power Email 5.0.0.7 RC with python2.6 in openERP Sever 5.0.10 When I try to check outgoing Connection, this error is showed: "SMTP Server Login Error An error occurred : character mapping must return integer, None or unicode " stack trace : [2010-05-18 09:31:16,240] DEBUG:Connection:create cursor to "laboratoriosPruebas" [2010-05-18 09:31:16,240] DEBUG:ConnectionPool:ConnectionPool(used=0/count=1/max=64) Borrow connection to user=leo dbname=laboratoriosPruebas [2010-05-18 09:31:16,240] DEBUG:ConnectionPool:ConnectionPool(used=1/count=1/max=64) Existing connection found at index 0 [2010-05-18 09:31:16,427] DEBUG:ConnectionPool:ConnectionPool(used=1/count=1/max=64) Give back connection to user=leo dbname=laboratoriosPruebas [2010-05-18 09:31:16,428] DEBUG:ConnectionPool:ConnectionPool(used=0/count=1/max=64) Put connection to user=leo dbname=laboratoriosPruebas in pool /usr/lib/python2.5/site-packages/openerp-server/tools/misc.py:750: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 if hasattr(e, 'message'): /usr/lib/python2.5/site-packages/openerp-server/tools/misc.py:751: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 return ustr(e.message) [2010-05-18 09:31:16,429] DEBUG_RPC:exception:u'warning -- SMTP Server Login Error\n\nAn error occurred : character mapping must return integer, None or unicode ' [2010-05-18 09:31:16,738] DEBUG_RPC:service:'object' [2010-05-18 09:31:16,738] DEBUG_RPC:method:'execute' [2010-05-18 09:31:16,740] DEBUG_RPC:params:[01]: ('laboratoriosPruebas', [2010-05-18 09:31:16,740] DEBUG_RPC:params:[02]: 1, [2010-05-18 09:31:16,740] DEBUG_RPC:params:[03]: 'acere264', [2010-05-18 09:31:16,740] DEBUG_RPC:params:[04]: 'ir.attachment', [2010-05-18 09:31:16,740] DEBUG_RPC:params:[05]: 'search_count', [2010-05-18 09:31:16,741] DEBUG_RPC:params:[06]: [('res_model', '=', u'poweremail.core_accounts'), ('res_id', '=', 1)]) [2010-05-18 09:31:16,741] DEBUG:Connection:create cursor to "laboratoriosPruebas" Not always, I tried with two email accounts with one work and the other is not It's a problem with python2.6. I fixed writing in poweremail_core.py : def out_connection(self, cr, uid, ids, context={}): ...........                 try:                     if serv.has_extn('AUTH') or rec.smtpuname or rec.smtppass:                         serv.login(rec.smtpuname.encode('utf-8'), rec.smtppass.encode('utf-8')) .............. I am using Power Email 5.0.0.7 RC with python2.6 in openERP Sever 5.0.10 When I try to check outgoing Connection, this error is showed: "SMTP Server Login Error An error occurred : character mapping must return integer, None or unicode " stack trace : [2010-05-18 09:31:16,240] DEBUG:Connection:create cursor to "laboratoriosPruebas" [2010-05-18 09:31:16,240] DEBUG:ConnectionPool:ConnectionPool(used=0/count=1/max=64) Borrow connection to user=leo dbname=laboratoriosPruebas [2010-05-18 09:31:16,240] DEBUG:ConnectionPool:ConnectionPool(used=1/count=1/max=64) Existing connection found at index 0 [2010-05-18 09:31:16,427] DEBUG:ConnectionPool:ConnectionPool(used=1/count=1/max=64) Give back connection to user=leo dbname=laboratoriosPruebas [2010-05-18 09:31:16,428] DEBUG:ConnectionPool:ConnectionPool(used=0/count=1/max=64) Put connection to user=leo dbname=laboratoriosPruebas in pool /usr/lib/python2.5/site-packages/openerp-server/tools/misc.py:750: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6   if hasattr(e, 'message'): /usr/lib/python2.5/site-packages/openerp-server/tools/misc.py:751: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6   return ustr(e.message) [2010-05-18 09:31:16,429] DEBUG_RPC:exception:u'warning -- SMTP Server Login Error\n\nAn error occurred : character mapping must return integer, None or unicode ' [2010-05-18 09:31:16,738] DEBUG_RPC:service:'object' [2010-05-18 09:31:16,738] DEBUG_RPC:method:'execute' [2010-05-18 09:31:16,740] DEBUG_RPC:params:[01]: ('laboratoriosPruebas', [2010-05-18 09:31:16,740] DEBUG_RPC:params:[02]: 1, [2010-05-18 09:31:16,740] DEBUG_RPC:params:[04]: 'ir.attachment', [2010-05-18 09:31:16,740] DEBUG_RPC:params:[05]: 'search_count', [2010-05-18 09:31:16,741] DEBUG_RPC:params:[06]: [('res_model', '=', u'poweremail.core_accounts'), ('res_id', '=', 1)]) [2010-05-18 09:31:16,741] DEBUG:Connection:create cursor to "laboratoriosPruebas" Not always, I tried with two email accounts with one work and the other is not It's a problem with python2.6. I fixed writing in poweremail_core.py : def out_connection(self, cr, uid, ids, context={}): ...........                 try:                     if serv.has_extn('AUTH') or rec.smtpuname or rec.smtppass:                         serv.login(rec.smtpuname.encode('utf-8'), rec.smtppass.encode('utf-8')) ..............
2010-07-29 13:01:56 Davide Corio attachment added poweremail_core.py.diff http://launchpadlibrarian.net/52689714/poweremail_core.py.diff
2010-09-12 10:35:35 Launchpad Janitor branch linked lp:~sharoonthomas/poweremail/refactoring
2011-02-04 09:29:18 Omar (Pexego) bug added subscriber Omar (Pexego)
2011-03-23 13:44:08 Sharoon Thomas http://openlabs.co.in poweremail: status New Fix Committed
2011-07-28 11:22:08 Roberto Lizana (trey.es) attachment added poweremail_core.py.diff https://bugs.launchpad.net/poweremail/+bug/581854/+attachment/2238129/+files/poweremail_core.py.diff