c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16615
[Bug 720705] [NEW] TypeError: exceptions must be old-style classes or derived from BaseException, not str
Public bug reported:
When the report format has not been recognized (for example, when some other reporting engine was installed in the system, but then removed, but reports still exist), server does not recognize the report format, which, itself is normal. But the syntax of throwing exception is legacy and not allowed with python 2.6.
See the error below.
[2011-02-17 15:17:14,511][test_db6_rc1] ERROR:web-services:[01]: Exception: exceptions must be old-style classes or derived from BaseException, not str
[2011-02-17 15:17:14,511][test_db6_rc1] ERROR:web-services:[02]: Traceback (most recent call last):
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[03]: File "/usr/lib/python2.7/site-packages/openerp-server/service/web_services.py", line 724, in go
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[05]: File "/usr/lib/python2.7/site-packages/openerp-server/report/report_sxw.py", line 422, in create
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[06]: raise 'Unknown Report Type'
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[07]: TypeError: exceptions must be old-style classes or derived from BaseException, not str
** Affects: openobject-server
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/720705
Title:
TypeError: exceptions must be old-style classes or derived from
BaseException, not str
Status in OpenERP Server:
New
Bug description:
When the report format has not been recognized (for example, when some other reporting engine was installed in the system, but then removed, but reports still exist), server does not recognize the report format, which, itself is normal. But the syntax of throwing exception is legacy and not allowed with python 2.6.
See the error below.
[2011-02-17 15:17:14,511][test_db6_rc1] ERROR:web-services:[01]: Exception: exceptions must be old-style classes or derived from BaseException, not str
[2011-02-17 15:17:14,511][test_db6_rc1] ERROR:web-services:[02]: Traceback (most recent call last):
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[03]: File "/usr/lib/python2.7/site-packages/openerp-server/service/web_services.py", line 724, in go
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[05]: File "/usr/lib/python2.7/site-packages/openerp-server/report/report_sxw.py", line 422, in create
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[06]: raise 'Unknown Report Type'
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[07]: TypeError: exceptions must be old-style classes or derived from BaseException, not str
Follow ups
-
[Bug 720705] Re: TypeError: exceptions must be old-style classes or derived from BaseException, not str
From: Vo Minh Thu (OpenERP), 2011-05-09
-
[Bug 720705] Re: TypeError: exceptions must be old-style classes or derived from BaseException, not str
From: Naresh(OpenERP), 2011-05-03
-
[Bug 720705] Re: TypeError: exceptions must be old-style classes or derived from BaseException, not str
From: Launchpad Bug Tracker, 2011-05-03
-
[Bug 720705] Re: TypeError: exceptions must be old-style classes or derived from BaseException, not str
From: Olivier Dony (OpenERP), 2011-03-15
-
[Bug 720705] Re: TypeError: exceptions must be old-style classes or derived from BaseException, not str
From: sraps (Alistek), 2011-03-01
-
[Bug 720705] Re: TypeError: exceptions must be old-style classes or derived from BaseException, not str
From: Vinay Rana (openerp), 2011-02-18
-
Re: [Bug 720705] [NEW] TypeError: exceptions must be old-style classes or derived from BaseException, not str
From: xrg, 2011-02-17
-
[Bug 720705] [NEW] TypeError: exceptions must be old-style classes or derived from BaseException, not str
From: sraps (Alistek), 2011-02-17
References