← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 887616] Re: report_webkit : New methods in WebKitHelper not found

 

Hello,

There no bug but a typo, please be careful before sending bug reports.
def get_reponse -> helper.get_response.

Second you should not add helper this way please have a look at
http://bazaar.launchpad.net/~c2c/c2c-
addons/trunk/files/head:/report_webkit_chapter_server/

Regards

Nicolas


** Changed in: openobject-addons
       Status: New => Invalid

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/887616

Title:
  report_webkit : New methods in WebKitHelper not found

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  System : Ubuntu 9.10
  Server Version : 6.0.3
  Web Version : 6.0.3
  Affected Module : report_webkit in trunk version

  Description :
  When I add a new method to the WebkitHelper class and reload the server, This method is not accessible from the report

  Error Raised : 
  Traceback (most recent call last): File "/home/quentin/workspace/openerp-server-REL-6.0.3/openerp-server-6.0.3/bin/addons/report_webkit.zip/report_webkit/webkit_report.py", line 303, in create_single_pdf **self.parser_instance.localcontext File "/usr/local/lib/python2.6/dist-packages/Mako-0.3.6-py2.6.egg/mako/template.py", line 283, in render return runtime._render(self, self.callable_, args, data) File "/usr/local/lib/python2.6/dist-packages/Mako-0.3.6-py2.6.egg/mako/runtime.py", line 575, in _render **_kwargs_for_callable(callable_, data)) File "/usr/local/lib/python2.6/dist-packages/Mako-0.3.6-py2.6.egg/mako/runtime.py", line 607, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File "/usr/local/lib/python2.6/dist-packages/Mako-0.3.6-py2.6.egg/mako/runtime.py", line 633, in _exec_template callable_(context, *args, **kwargs) File "memory:0xa0f7a4c", line 85, in render_body ${helper.get_response("Problem ?")} AttributeError: 'WebKitHelper' object has no attribute 'get_response'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/887616/+subscriptions


References