"Buy…" button missing in software list view

Bug #622700 reported by Matthew Paul Thomas on 2010-08-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Matthew McGowan

Bug Description

software-center trunk r1026, Ubuntu Maverick

1. software-center --enable-buy
2. Search for "hello".
3. Select the "Hello X Adventure" item.

What happens: The row displays a "More Info" button only.
What should happen: The row displays "More Info" and "Buy…" buttons.

Low importance, because most of the time when people want to buy something it will be from the software item screen.

Changed in software-center (Ubuntu):
importance: Undecided → Low
description: updated
Michael Vogt (mvo) on 2010-08-23
Changed in software-center (Ubuntu):
status: New → Confirmed
Matthew McGowan (mmcg069) wrote :

I can look into this. shouldn't be too difficult.

Changed in software-center (Ubuntu):
assignee: nobody → Matthew McGowan (mmcg069)
Matthew McGowan (mmcg069) wrote :

So i've added this in bzr push lp:~mmcg069/software-center/appview-buy-button

Let me know what you think. @mpt: I didnt know the unicode for '...' so the 'Buy...' label needs that changed at least ;)

Changed in software-center (Ubuntu):
status: Confirmed → In Progress
Matthew Paul Thomas (mpt) wrote :

That's a good start, thanks. But it breaks when I click the "Buy..." button:

14:41:10@appview-buy-button> PYTHONPATH=. ./software-center
INFO:softwarecenter:Using data (UI, xapian) from current dir
WARNING:softwarecenter.fixme:logs to the root logger: '('/home/mpt/hacking/software-center/appview-buy-button/softwarecenter/view/widgets/mkit_themes.py', 675, 'retrieve')'
WARNING:root:No styling hints for elementary were found... using Human hints.
INFO:softwarecenter.app:software-center-agent finished with status 0
Traceback (most recent call last):
  File "/home/mpt/hacking/software-center/appview-buy-button/softwarecenter/view/appview.py", line 1438, in _on_button_release_event
    self._init_activated(btn, view.get_model(), path)
  File "/home/mpt/hacking/software-center/appview-buy-button/softwarecenter/view/appview.py", line 1498, in _init_activated
    installed = model[path][AppStore.COL_INSTALLED]
AttributeError: type object 'AppStore' has no attribute 'COL_INSTALLED'

Python for an ellipsis is \u2026. See "grep -r 2026 *" for examples.

Changed in software-center (Ubuntu):
milestone: none → later
Matthew McGowan (mmcg069) wrote :

I have fixed the issue you raised, the purchase login dialog is now displayed. This will need more testing, as i don't want to purchase the pkg atm :P.

The branch does not handle the "install previously purchased" scenario. yet.

Changed in software-center (Ubuntu):
milestone: later → none
Kiwinote (kiwinote) wrote :

We have this in precise now :)

Changed in software-center (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers