c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #01707
[Bug 668781] [NEW] TypeError: function takes exactly 5 arguments (1 given)
Public bug reported:
When loading a pristine database with several modules, I got the following error.
This error subsequently causes exceptions in all the reports
[2010-10-30 22:31:54,625][test60] DEBUG:tests.mrp:Exception during evaluation of !python block in yaml_file /var/local/software/openerp-v6.0dev/openobject-server/bin/addons/mrp/test/mrp_report.yml.
Traceback (most recent call last):
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/tools/yaml_import.py", line 412, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/addons/mrp/test/mrp_report.yml", line 2, in <module>
In order to test the PDF reports defined on a MRP, we will print a BOM Structure Report
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/interface.py", line 100, in create
pdf = create_doc(rml, title=self.title)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/interface.py", line 190, in create_pdf
obj.render()
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/render.py", line 49, in render
result = self._render()
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml.py", line 42, in _render
return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/addons/base_report_unicode/__init__.py", line 80, in convert2TrueType
return method(data, args[1:] if len(args) > 2 else args[1], **argv)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 892, in parseNode
r.render(fp)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 273, in render
pt_obj.render(el)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 877, in render
self.doc_tmpl.build(fis,canvasmaker=NumberedCanvas)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 874, in build
self.clean_hanging()
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 509, in clean_hanging
self.handle_flowable(self._hanging)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 756, in handle_flowable
f.apply(self)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
getattr(doc,arn)(*args)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 534, in handle_pageBegin
self.pageTemplate.onPage(self.canv,self)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 528, in render
cnv.render(self.node)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 513, in render
tags[n.tag](n)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 317, in _drawString
text=self._textual(node, **v)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 298, in _textual
rc = utils._process_text(self, text)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/utils.py", line 120, in _process_text
result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0)))
TypeError: function takes exactly 5 arguments (1 given)
[2010-10-30 22:31:54,626][test60] ERROR:tests.mrp:function takes exactly 5 arguments (1 given)
Traceback (most recent call last):
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/tools/yaml_import.py", line 723, in process
self._process_node(node)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/tools/yaml_import.py", line 738, in _process_node
self.process_python(node)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/tools/yaml_import.py", line 412, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/addons/mrp/test/mrp_report.yml", line 2, in <module>
In order to test the PDF reports defined on a MRP, we will print a BOM Structure Report
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/interface.py", line 100, in create
pdf = create_doc(rml, title=self.title)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/interface.py", line 190, in create_pdf
obj.render()
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/render.py", line 49, in render
result = self._render()
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml.py", line 42, in _render
return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/addons/base_report_unicode/__init__.py", line 80, in convert2TrueType
return method(data, args[1:] if len(args) > 2 else args[1], **argv)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 892, in parseNode
r.render(fp)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 273, in render
pt_obj.render(el)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 877, in render
self.doc_tmpl.build(fis,canvasmaker=NumberedCanvas)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 874, in build
self.clean_hanging()
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 509, in clean_hanging
self.handle_flowable(self._hanging)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 756, in handle_flowable
f.apply(self)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
getattr(doc,arn)(*args)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 534, in handle_pageBegin
self.pageTemplate.onPage(self.canv,self)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 528, in render
cnv.render(self.node)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 513, in render
tags[n.tag](n)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 317, in _drawString
text=self._textual(node, **v)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 298, in _textual
rc = utils._process_text(self, text)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/utils.py", line 120, in _process_text
result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0)))
TypeError: function takes exactly 5 arguments (1 given)
[2010-10-30 22:31:54,626][test60] TEST:ERROR:function takes exactly 5 arguments (1 given)
crclinic@crclinic-server:/var/local/software/openerp-v6.0dev/openobject-server$ bzr log -l 1
------------------------------------------------------------
revno: 2962
committer: Launchpad Translations on behalf of openerp
branch nick: openobject-server
timestamp: Fri 2010-10-29 05:27:00 +0000
message:
Launchpad automatic translations update.
crclinic@crclinic-server:/var/local/software/openerp-v6.0dev/openobject-server$ bzr info
Standalone tree (format: 2a)
Location:
branch root: .
Related branches:
parent branch: http://bazaar.launchpad.net/~openerp/openobject-server/trunk/
** Affects: openobject-addons
Importance: Undecided
Status: New
--
TypeError: function takes exactly 5 arguments (1 given)
https://bugs.launchpad.net/bugs/668781
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Addons Modules: New
Bug description:
When loading a pristine database with several modules, I got the following error.
This error subsequently causes exceptions in all the reports
[2010-10-30 22:31:54,625][test60] DEBUG:tests.mrp:Exception during evaluation of !python block in yaml_file /var/local/software/openerp-v6.0dev/openobject-server/bin/addons/mrp/test/mrp_report.yml.
Traceback (most recent call last):
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/tools/yaml_import.py", line 412, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/addons/mrp/test/mrp_report.yml", line 2, in <module>
In order to test the PDF reports defined on a MRP, we will print a BOM Structure Report
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/interface.py", line 100, in create
pdf = create_doc(rml, title=self.title)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/interface.py", line 190, in create_pdf
obj.render()
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/render.py", line 49, in render
result = self._render()
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml.py", line 42, in _render
return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/addons/base_report_unicode/__init__.py", line 80, in convert2TrueType
return method(data, args[1:] if len(args) > 2 else args[1], **argv)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 892, in parseNode
r.render(fp)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 273, in render
pt_obj.render(el)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 877, in render
self.doc_tmpl.build(fis,canvasmaker=NumberedCanvas)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 874, in build
self.clean_hanging()
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 509, in clean_hanging
self.handle_flowable(self._hanging)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 756, in handle_flowable
f.apply(self)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
getattr(doc,arn)(*args)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 534, in handle_pageBegin
self.pageTemplate.onPage(self.canv,self)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 528, in render
cnv.render(self.node)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 513, in render
tags[n.tag](n)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 317, in _drawString
text=self._textual(node, **v)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 298, in _textual
rc = utils._process_text(self, text)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/utils.py", line 120, in _process_text
result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0)))
TypeError: function takes exactly 5 arguments (1 given)
[2010-10-30 22:31:54,626][test60] ERROR:tests.mrp:function takes exactly 5 arguments (1 given)
Traceback (most recent call last):
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/tools/yaml_import.py", line 723, in process
self._process_node(node)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/tools/yaml_import.py", line 738, in _process_node
self.process_python(node)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/tools/yaml_import.py", line 412, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/addons/mrp/test/mrp_report.yml", line 2, in <module>
In order to test the PDF reports defined on a MRP, we will print a BOM Structure Report
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/interface.py", line 100, in create
pdf = create_doc(rml, title=self.title)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/interface.py", line 190, in create_pdf
obj.render()
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/render.py", line 49, in render
result = self._render()
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml.py", line 42, in _render
return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/addons/base_report_unicode/__init__.py", line 80, in convert2TrueType
return method(data, args[1:] if len(args) > 2 else args[1], **argv)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 892, in parseNode
r.render(fp)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 273, in render
pt_obj.render(el)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 877, in render
self.doc_tmpl.build(fis,canvasmaker=NumberedCanvas)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 874, in build
self.clean_hanging()
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 509, in clean_hanging
self.handle_flowable(self._hanging)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 756, in handle_flowable
f.apply(self)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
getattr(doc,arn)(*args)
File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 534, in handle_pageBegin
self.pageTemplate.onPage(self.canv,self)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 528, in render
cnv.render(self.node)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 513, in render
tags[n.tag](n)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 317, in _drawString
text=self._textual(node, **v)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 298, in _textual
rc = utils._process_text(self, text)
File "/var/local/software/openerp-v6.0dev/openobject-server/bin/report/render/rml2pdf/utils.py", line 120, in _process_text
result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0)))
TypeError: function takes exactly 5 arguments (1 given)
[2010-10-30 22:31:54,626][test60] TEST:ERROR:function takes exactly 5 arguments (1 given)
crclinic@crclinic-server:/var/local/software/openerp-v6.0dev/openobject-server$ bzr log -l 1
------------------------------------------------------------
revno: 2962
committer: Launchpad Translations on behalf of openerp
branch nick: openobject-server
timestamp: Fri 2010-10-29 05:27:00 +0000
message:
Launchpad automatic translations update.
crclinic@crclinic-server:/var/local/software/openerp-v6.0dev/openobject-server$ bzr info
Standalone tree (format: 2a)
Location:
branch root: .
Related branches:
parent branch: http://bazaar.launchpad.net/~openerp/openobject-server/trunk/
Follow ups
References