[7.0/trunk] l10n_ch description is generating reStructuredText errors on apps.openerp.com/apps

Bug #1183248 reported by Yannick Vaucher @ Camptocamp
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP Publisher's Warranty Team

Bug Description

Description need to be fixed:

https://apps.openerp.com/apps/7.0/l10n_ch/

{"message": "OpenERP Server Error", "code": 200, "data": {"debug": "Traceback (most recent call last):
 File \"/home/odoo/src/web/saas-1/addons/web/http.py\", line 304, in dispatch
 r = method(self, **self.params)
 File \"/home/odoo/src/custom/private/loempia/controllers/frontend.py\", line 41, in deco
 return f(self, req, *args, **kwargs)
 File \"/home/odoo/src/custom/private/loempia/controllers/frontend.py\", line 186, in index
 [\"name\", \"path\", \"description_html\", \"image_ids\", \"shortdesc\", \"summary\", \"author\", \"website\"])
 File \"/home/odoo/src/web/saas-1/addons/web/session.py\", line 57, in search_read
 records = self.read(record_ids, fields or [], context or {})
 File \"/home/odoo/src/web/saas-1/addons/web/session.py\", line 43, in proxy
 result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
 File \"/home/odoo/src/web/saas-1/addons/web/session.py\", line 30, in proxy_method
 result = self.session.send(self.service_name, method, *args)
 File \"/home/odoo/src/web/saas-1/addons/web/session.py\", line 88, in send
 return openerp.netsvc.dispatch_rpc(service_name, method, args)
 File \"/home/odoo/src/server/saas-1/openerp/netsvc.py\", line 237, in dispatch_rpc
 result = dispatch(method, params)
 File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line 36, in dispatch
 res = fn(db, uid, *params)
 File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line 160, in execute_kw
 return execute(db, uid, obj, method, *args, **kw or {})
 File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line 111, in wrapper
 return f(dbname, *args, **kwargs)
 File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line 170, in execute
 res = execute_cr(cr, uid, obj, method, *args, **kw)
 File \"/home/odoo/src/addons/saas-1/audittrail/audittrail.py\", line 516, in execute_cr
 return fct_src(cr, uid, model, method, *args, **kw)
 File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line 157, in execute_cr
 return getattr(object, method)(cr, uid, *args, **kw)
 File \"/home/odoo/src/server/saas-1/openerp/osv/orm.py\", line 3607, in read
 result = self._read_flat(cr, user, select, fields, context, load)
 File \"/home/odoo/src/server/saas-1/openerp/osv/orm.py\", line 3722, in _read_flat
 res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
 File \"/home/odoo/src/server/saas-1/openerp/osv/fields.py\", line 1132, in get
 result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
 File \"/home/odoo/src/custom/private/loempia/loempia2.py\", line 165, in _get_desc
 res[module.id] = util.rst2html(module.description)
 File \"/home/odoo/src/custom/private/loempia/util.py\", line 46, in rst2html
 output = publish_string(source=content, settings_overrides=overrides, writer=MyWriter())
 File \"/usr/lib/python2.7/dist-packages/docutils/core.py\", line 401, in publish_string
 enable_exit_status=enable_exit_status)
 File \"/usr/lib/python2.7/dist-packages/docutils/core.py\", line 649, in publish_programmatically
 output = pub.publish(enable_exit_status=enable_exit_status)
 File \"/usr/lib/python2.7/dist-packages/docutils/core.py\", line 211, in publish
 self.settings)
 File \"/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py\", line 69, in read
 self.parse()
 File \"/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py\", line 75, in parse
 self.parser.parse(self.input, document)
 File \"/usr/lib/python2.7/dist-packages/docutils/parsers/rst/__init__.py\", line 157, in parse
 self.statemachine.run(inputlines, document, inliner=self.inliner)
 File \"/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py\", line 170, in run
 input_source=document['source'])
 File \"/usr/lib/python2.7/dist-packages/docutils/statemachine.py\", line 237, in run
 context, state, transitions)
 File \"/usr/lib/python2.7/dist-packages/docutils/statemachine.py\", line 458, in check_line
 return method(match, context, next_state)
 File \"/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py\", line 1110, in indent
 elements = self.block_quote(indented, line_offset)
 File \"/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py\", line 1125, in block_quote
 self.nested_parse(blockquote_lines, line_offset, blockquote)
 File \"/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py\", line 284, in nested_parse
 node=node, match_titles=match_titles)
 File \"/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py\", line 195, in run
 results = StateMachineWS.run(self, input_lines, input_offset)
 File \"/usr/lib/python2.7/dist-packages/docutils/statemachine.py\", line 237, in run
 context, state, transitions)
 File \"/usr/lib/python2.7/dist-packages/docutils/statemachine.py\", line 458, in check_line
 return method(match, context, next_state)
 File \"/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py\", line 2703, in underline
 source=src, line=srcline)
 File \"/usr/lib/python2.7/dist-packages/docutils/utils.py\", line 232, in severe
 return self.system_message(self.SEVERE_LEVEL, *args, **kwargs)
 File \"/usr/lib/python2.7/dist-packages/docutils/utils.py\", line 190, in system_message
 raise SystemMessage(msg, level)
SystemMessage: <string>:3: (SEVERE/4) Unexpected section title.

Swiss localization :
====================
", "message": "<string>:3: (SEVERE/4) Unexpected section title.

Swiss localization :
====================", "name": "docutils.utils.SystemMessage", "arguments": ["<string>:3: (SEVERE/4) Unexpected section title.

Swiss localization :
===================="]}}

Tags: maintenance

Related branches

Changed in openobject-addons:
status: New → Fix Committed
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :
Download full text (5.9 KiB)

Hello Yannick,

Thanks for reporting this.

I have checked this issue with latest trunk and 7.0 on runbot, and when I clicked on below l10n_ch , I have faced this below traceback which is some more different form the above trace back :

OpenERP Server Error

Traceback (most recent call last):
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/addons/web/http.py", line 203, in dispatch
    response["result"] = method(self, **self.params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/addons/web/controllers/main.py", line 1133, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/addons/web/controllers/main.py", line 1119, in _call_kw
    records = req.session.model(model).read(*args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/addons/web/session.py", line 43, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/addons/web/session.py", line 88, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/netsvc.py", line 237, in dispatch_rpc
    result = dispatch(method, params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/service/model.py", line 36, in dispatch
    res = fn(db, uid, *params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/service/model.py", line 160, in execute_kw
    return execute(db, uid, obj, method, *args, **kw or {})
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/service/model.py", line 111, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/service/model.py", line 170, in execute
    res = execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/addons/audittrail/audittrail.py", line 516, in execute_cr
    return fct_src(cr, uid, model, method, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/service/model.py", line 157, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/osv/orm.py", line 3607, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/osv/orm.py", line 3722, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/openerp/osv/fields.py", line 1132, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/home/odoo/runbot/static/openerp-dev-trunk-11518/server/opene...

Read more...

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: Fix Committed → Confirmed
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
no longer affects: openerp-swiss-localization
Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

Hello,

Thanks for the report. Fixed in openerp addons 7.0 (revision 9272), will be forward ported in trunk soon
Regards

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

When will this fix the error 500 issue on https://apps.openerp.com/apps/l10n_ch/ ?

Revision history for this message
guttermonk (guttermonk) wrote :

I installed OpenERP v7.0 on a Centos 6.3 server per these instructions:
http://forum.openerp.com/forum/topic36094.html

When I try to load my page on port 8069, I receive an OpenERP Internal Server Error - code 200 (see attached).

Did I botch the install, or is this the same bug being discussed in this thread?

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

@guttermonk, I don't think your issue is related to this bug which is about swiss localization in OpenERP, please create an other bug report

Revision history for this message
guttermonk (guttermonk) wrote : Re: [Bug 1183248] Re: [7.0/trunk] l10n_ch description is generating reStructuredText errors on apps.openerp.com/apps
Download full text (6.8 KiB)

Thank you for the follow-up. I solved the bug by updating PostgreSQL, and
everything works as it should now. Keep up the great work!

-guttermonk

On Monday, July 15, 2013, Yannick Vaucher @ Camptocamp <
<email address hidden>> wrote:

> @guttermonk, I don't think your issue is related to this bug which is
> about swiss localization in OpenERP, please create an other bug report
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1183248
>
> Title:
> [7.0/trunk] l10n_ch description is generating reStructuredText errors
> on apps.openerp.com/apps
>
> Status in OpenERP Addons (modules):
> Confirmed
>
> Bug description:
> Description need to be fixed:
>
> https://apps.openerp.com/apps/7.0/l10n_ch/
>
>
> {"message": "OpenERP Server Error", "code": 200, "data": {"debug":
> "Traceback (most recent call last):
> File \"/home/odoo/src/web/saas-1/addons/web/http.py\", line 304, in
> dispatch
> r = method(self, **self.params)
> File \"/home/odoo/src/custom/private/loempia/controllers/frontend.py\",
> line 41, in deco
> return f(self, req, *args, **kwargs)
> File \"/home/odoo/src/custom/private/loempia/controllers/frontend.py\",
> line 186, in index
> [\"name\", \"path\", \"description_html\", \"image_ids\",
> \"shortdesc\", \"summary\", \"author\", \"website\"])
> File \"/home/odoo/src/web/saas-1/addons/web/session.py\", line 57, in
> search_read
> records = self.read(record_ids, fields or [], context or {})
> File \"/home/odoo/src/web/saas-1/addons/web/session.py\", line 43, in
> proxy
> result = self.proxy.execute_kw(self.session._db, self.session._uid,
> self.session._password, self.model, method, args, kw)
> File \"/home/odoo/src/web/saas-1/addons/web/session.py\", line 30, in
> proxy_method
> result = self.session.send(self.service_name, method, *args)
> File \"/home/odoo/src/web/saas-1/addons/web/session.py\", line 88, in
> send
> return openerp.netsvc.dispatch_rpc(service_name, method, args)
> File \"/home/odoo/src/server/saas-1/openerp/netsvc.py\", line 237, in
> dispatch_rpc
> result = dispatch(method, params)
> File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line
> 36, in dispatch
> res = fn(db, uid, *params)
> File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line
> 160, in execute_kw
> return execute(db, uid, obj, method, *args, **kw or {})
> File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line
> 111, in wrapper
> return f(dbname, *args, **kwargs)
> File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line
> 170, in execute
> res = execute_cr(cr, uid, obj, method, *args, **kw)
> File \"/home/odoo/src/addons/saas-1/audittrail/audittrail.py\", line
> 516, in execute_cr
> return fct_src(cr, uid, model, method, *args, **kw)
> File \"/home/odoo/src/server/saas-1/openerp/service/model.py\", line
> 157, in execute_cr
> return getattr(object, method)(cr, uid, *args, **kw)
> File \"/home/odoo/src/server/saas-1/openerp/osv/orm.py\", line 3607, in
> read
> result = self._read_flat(cr, user, select, fields, context, load...

Read more...

Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

.This bug was fixed by both fixing the manifest and also catching the exception in a better way

revno: 9272 [merge]
revision-id: <email address hidden>

Changed in openobject-addons:
status: Confirmed → Fix Released
Changed in openobject-addons:
milestone: none → 7.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.