"Buy…" button missing in software list view

Bug #622700 reported by Matthew Paul Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Low
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)
Changed in software-center (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthew McGowan (mmcg069) wrote :

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

Changed in software-center (Ubuntu):
assignee: nobody → Matthew McGowan (mmcg069)
Revision history for this message
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
Revision history for this message
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
Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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