[Trunk] Images Not Being Displayed on "Website" List Grid

Bug #1251969 reported by Tech-Receptives Monitor
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Getting following error trace back while getting product list after installing website_sale module.

2013-11-17 07:57:01,227 9814 ERROR demo_v8_new openerp.addons.website.models.website: Website Rendering Error.
Traceback (most recent call last):
  File "/home/erp/workspace_v8/trunk/addons/website/models/website.py", line 56, in wrap
    return f(*args, **kwargs)
  File "/home/erp/workspace_v8/trunk/addons/website/controllers/main.py", line 347, in image
    response.set_data(data)
AttributeError: 'Response' object has no attribute 'set_data'

Images are not being displayed due to this, screen shot is attached..

I am using Server (Rev No. 5066) : http://bazaar.launchpad.net/~openerp-dev/openobject-server/trunk-website-al/
Addons (Rev No. 9935) : http://bazaar.launchpad.net/~openerp-dev/openobject-addons/trunk-website-al/
WebClient (Rev No. 3801) : http://bazaar.launchpad.net/~openerp-dev/openerp-web/trunk-website-al/

Cheers,
Parthiv

Related branches

Revision history for this message
Tech-Receptives Monitor (parthivb85) wrote :
summary: - Images Not Being Displayed on "Website" List Grid
+ [Trunk] Images Not Being Displayed on "Website" List Grid
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello,

This trunk-website-al project task is in under development. Still it is not released in latest trunk.

So, We can not consider it as bug.

Hope you understand.. !!

Thank you.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Jos De Graeve - http://www.apertoso.be/ (jos-degraeve) wrote :

Hi,

The call to set_data() is new from werkzeug 0.9
Debian 7.0 install's werkzeug 0.8.1 - wich does not provide the method.

"pip-install werkzeug" should fix this issue on your system.

@tch-openerp: this is an issue with will become a bug once openerp wants to release V8.0, please don't ignore this.

Regards,
Jos

Revision history for this message
Maarten De Wispelaere (maarten-dewispelaere) wrote :

This issue also exists in Ubuntu 12.04 LTS, with all latest updates applied at the time of writing.

openerp@ubuntu:~/trunk-website-al$ dpkg -l | grep werkzeug
ii python-werkzeug 0.8.1+dfsg-1 collection of utilities for WSGI applications

apt-get purge python-werkzeug
apt-get install python-pip
pip install werkzeug

The latter installs 0.9.4, which fixes the issue

Images are now displayed correctly in the webshop.

Revision history for this message
FS (baifusheng) wrote :

If you have installed werkzeug, then use this:

apt-get install python-pip
pip install werkzeug --upgrade

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.