Comment 18 for bug 507973

Revision history for this message
David Diz (daviddiz) wrote :

I tested the new server revision:
https://code.launchpad.net/~openerp-groupes/openobject-server/6.0-cli-allows-multiple-addons-path

with aeroo reports and multiple addons paths

but the same error occurs when i try to print the sample report:

"hello_world" not defined For more reference inspect error logs. (<type 'exceptions.Exception'>, Exception(u'Aeroo Reports: Error while generating the report.', UndefinedError('"hello_world" not defined',), '"hello_world" not defined', u'For more reference inspect error logs.'), <traceback object at 0xa416f2c>)

and the traceback is:

ERROR:report_aeroo:[01]: Traceback (most recent call last):
ERROR:report_aeroo:[02]: File "/home/david/Escritorio/prueba/addons2/report_aeroo/report_aeroo.py", line 396, in create_aeroo_report
ERROR:report_aeroo:[03]: data = basic.generate(**oo_parser.localcontext).render().getvalue()
ERROR:report_aeroo:[04]: File "/usr/local/lib/python2.6/dist-packages/aeroolib-1.0.0-py2.6.egg/aeroolib/plugins/base.py", line 48, in render
ERROR:report_aeroo:[05]: return self.serializer(self.events)
ERROR:report_aeroo:[06]: File "/usr/local/lib/python2.6/dist-packages/aeroolib-1.0.0-py2.6.egg/aeroolib/plugins/opendocument.py", line 1156, in __call__
ERROR:report_aeroo:[07]: for kind, data, pos in stream:
ERROR:report_aeroo:[08]: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include
ERROR:report_aeroo:[09]: for event in stream:
ERROR:report_aeroo:[10]: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 327, in _match
ERROR:report_aeroo:[11]: for event in stream:
ERROR:report_aeroo:[12]: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 565, in _flatten
ERROR:report_aeroo:[13]: result = _eval_expr(data, ctxt, vars)
ERROR:report_aeroo:[14]: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 277, in _eval_expr
ERROR:report_aeroo:[15]: retval = expr.evaluate(ctxt)
ERROR:report_aeroo:[16]: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py", line 178, in evaluate
ERROR:report_aeroo:[17]: return eval(self.code, _globals, {'__data__': data})
ERROR:report_aeroo:[18]: File "<string>", line 1, in <Expression u'__filter(hello_world(o.name))'>
ERROR:report_aeroo:[19]: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py", line 309, in lookup_name
ERROR:report_aeroo:[20]: val = cls.undefined(name)
ERROR:report_aeroo:[21]: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py", line 410, in undefined
ERROR:report_aeroo:[22]: raise UndefinedError(key, owner=owner)
ERROR:report_aeroo:[23]: UndefinedError: "hello_world" not defined
ERROR:web-services:[01]: Exception: (u'Aeroo Reports: Error while generating the report.', UndefinedError('"hello_world" not defined',), '"hello_world" not defined', u'For more reference inspect error logs.')
ERROR:web-services:[02]: Traceback (most recent call last):
ERROR:web-services:[03]: File "/home/david/Escritorio/prueba/openerp-server/bin/service/web_services.py", line 724, in go
ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
ERROR:web-services:[05]: File "/home/david/Escritorio/prueba/addons2/report_aeroo/report_aeroo.py", line 537, in create
ERROR:web-services:[06]: return fnct(cr, uid, ids, data, report_xml, context)
ERROR:web-services:[07]: File "/home/david/Escritorio/prueba/addons2/report_aeroo/report_aeroo.py", line 494, in create_source_odt
ERROR:web-services:[08]: return results and len(results)==1 and results[0] or self.create_single_pdf(cr, uid, ids, data, report_xml, context)
ERROR:web-services:[09]: File "/home/david/Escritorio/prueba/addons2/report_aeroo/report_aeroo.py", line 438, in create_single_pdf
ERROR:web-services:[10]: return self.create_aeroo_report(cr, uid, ids, data, report_xml, context=context, output=output)
ERROR:web-services:[11]: File "/home/david/Escritorio/prueba/addons2/report_aeroo/report_aeroo.py", line 402, in create_aeroo_report
ERROR:web-services:[12]: raise Exception(_("Aeroo Reports: Error while generating the report."), e, str(e), _("For more reference inspect error logs."))
ERROR:web-services:[13]: Exception: (u'Aeroo Reports: Error while generating the report.', UndefinedError('"hello_world" not defined',), '"hello_world" not defined', u'For more reference inspect error logs.')