c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16622
Re: [Bug 720705] [NEW] TypeError: exceptions must be old-style classes or derived from BaseException, not str
On Thursday 17 February 2011, you wrote:
> 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.
http://git.hellug.gr/?p=xrg/openobject-
server;a=commitdiff;h=0fe96c77036253defa5
Note the date of commit, please
--
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
References