TypeError: getlines() takes exactly 1 argument (2 given)

Asked by mm alam

Hi every one,

I am using account_reports_india for reporting. The already generated "rml" files works fine, however, when I want to create the rml from the provided sxw, I get the following error:

  File "/home/alam/Desktop/Data/server/bin/report/render/rml2pdf/trml2pdf.py", line 702, in process_story
    flow = self._flowable(node)
  File "/home/alam/Desktop/Data/server/bin/report/render/rml2pdf/trml2pdf.py", line 616, in _flowable
    return self._table(node)
  File "/home/alam/Desktop/Data/server/bin/report/render/rml2pdf/trml2pdf.py", line 514, in _table
    fl = self._flowable(n, extra_style=paraStyle)
  File "/home/alam/Desktop/Data/server/bin/report/render/rml2pdf/trml2pdf.py", line 616, in _flowable
    return self._table(node)
  File "/home/alam/Desktop/Data/server/bin/report/render/rml2pdf/trml2pdf.py", line 483, in _table
    for tr in childs:
  File "/home/alam/Desktop/Data/server/bin/report/render/rml2pdf/utils.py", line 62, in _child_get
    for ctx in eval(n.get('rml_loop'),{}, self.localcontext):
  File "<string>", line 1, in <module>
TypeError: get_lines() takes exactly 1 argument (2 given)

Can any body, help, where I am wrong?

Regards,

Question information

Language:
English Edit question
Status:
Answered
For:
OpenERP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello MM Alam ,

There are some changes done in '.rml' directly without changing the '.sxw' file, so better you need to check the '.rml' function call with sxw function call.I think one of the function arguments are changed , So you did face this error.
There are so many changes which are done in '.rml' file directly so I suggesting you that use '.rml' directly instead of '.sxw'.

Hope this will help you.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask mm alam for more information if necessary.

To post a message you must log in.