Comment 4 for bug 1246555

Revision history for this message
rjay lopez (rjay1018) wrote :

Hello Scribder,

Thank you for your response. I try the first option about changing the 'action_create_xml' function in "/jasper_reports/wizard/jasper_create_data_template.py". But I get this error from my logs
====================================================================================================
Traceback (most recent call last):
  File "/opt/openerp/server-7/openerp/netsvc.py", line 293, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server-7/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server-7/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server-7/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server-7/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server-7/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server-7/openerp/addons/jasper_reports/wizard/jasper_create_data_template.py", line 58, in action_create_xml
    raise osv.except_osv((''),("%s") % (base64.encodestring( xml )))
except_osv: ('', 'PGRhdGE+PHJlY29yZD48aWQ+MTwvaWQ+PEFjdGl2ZS1hY3RpdmU+YWN0aXZlPC9BY3RpdmUtYWN0\naXZlPjxBY3R1YWxfQ29zdC1hY3R1YWxfY29zdD4xMjM0NS42NzwvQWN0dWFsX0Nvc3QtYWN0dWFs\nX2Nvc3Q+PEFjdHVhbF9Qcm9maXQtYWN0dWFsX3Byb2ZpdD4xMjM0NS42NzwvQWN0dWFsX1Byb2Zp\ndC1hY3R1YWxfcHJvZml0PjxQbGFubmVkX1Rhc2tfTGluZS1hY3R1YWxfdG
....................
====================================================================================================
actually the scrambled letters and number is too long so I just represent it with several dot :)

I'm looking forward to try your second option. I might just need your help for more specific steps or details how to get in to the server, and save the content of the xml file.

Thank you and more power,