Ticket #26 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

relatorio broken for genshi 0.6

Reported by: matb Owned by: ced
Priority: major Component: Relatorio Core
Keywords: Cc:

Description

Forwarded from https://bugs.tryton.org/roundup/issue1558:

After upgrade to python-genshi 0.6-1

Opening a report i.e. invoice:

Traceback (most recent call last):

File "/trytond/protocols/netrpc.py", line 47, in run

res = dispatch(host, port, 'NetRPC', *msg)

File "/trytond/protocols/dispatcher.py", line 127, in dispatch

res = getattr(obj, method)(cursor, user, *args, **kargs)

File "/trytond/model/modelworkflow.py", line 123, in workflow_trigger_validate

context=context)

File "/trytond/workflow/workflow.py", line 210, in validate

force_running=force_running, context=context)

File "/trytond/workflow/workflow.py", line 328, in process

signal, context=context)

File "/trytond/workflow/workflow.py", line 451, in _split_test

context=context)

File "/trytond/workflow/workflow.py", line 463, in _join_test

}, context=context)

File "/trytond/workflow/workflow.py", line 300, in create

self.process(cursor, user, workitem, context=context)

File "/trytond/workflow/workflow.py", line 321, in process

context=context):

File "/trytond/workflow/workflow.py", line 371, in _execute

context=context)

File "/trytond/workflow/expr.py", line 74, in execute

context=context)

File "/trytond/workflow/expr.py", line 59, in eval_expr

res = safe_eval(line, env)

File "/trytond/tools/misc.py", line 597, in safe_eval

}}, data)

File "", line 1, in <module>
File "/trytond/workflow/expr.py", line 21, in call

self.obj_id, *args, **kargs)

File "/trytond/modules/account_invoice/invoice.py", line 1156, in print_invoice

{'id': invoice_id}, context=context)

File "/trytond/modules/account_invoice/invoice.py", line 2130, in execute

context=context)

File "/trytond/report/report.py", line 126, in execute

objects, datas, context)

File "/trytond/modules/account_invoice/invoice.py", line 2166, in parse

datas, context)

File "/trytond/report/report.py", line 223, in parse

data = rel_report(**localcontext).render()

File "/relatorio/templates/base.py", line 36, in render

return self.serializer(self.events)

File "/relatorio/templates/opendocument.py", line 753, in call

for kind, data, pos in stream:

File "/genshi/core.py", line 272, in _ensure

event = stream.next()

File "/genshi/filters/i18n.py", line 666, in call

gettext = self.translate.ugettext

AttributeError?: TranslateFactory? instance has no attribute 'ugettext'

Change History

Changed 3 years ago by ced

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.