Merge lp:~rvb/launchpad/upgrade-display into lp:launchpad

Proposed by Raphaël Badin
Status: Merged
Approved by: Raphaël Badin
Approved revision: no longer in the source branch.
Merged at revision: 13873
Proposed branch: lp:~rvb/launchpad/upgrade-display
Merge into: lp:launchpad
Diff against target: 18 lines (+2/-2)
1 file modified
lib/lp/registry/templates/distroseries-localdifferences.pt (+2/-2)
To merge this branch: bzr merge lp:~rvb/launchpad/upgrade-display
Reviewer Review Type Date Requested Status
Gavin Panella (community) Approve
Review via email: mp+73640@code.launchpad.net

Commit message

[r=allenap][bug=830982] Fix call to action.available in localpackagediffs.

Description of the change

This branch fixes the call to action.available to really call the method.

= Tests =

No tests

= QA =

The upgrade button should not be displayed if the FF soyuz.derived_series_upgrade.enabled is not enabled.

To post a comment you must log in.
Revision history for this message
Gavin Panella (allenap) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/registry/templates/distroseries-localdifferences.pt'
2--- lib/lp/registry/templates/distroseries-localdifferences.pt 2011-08-30 22:42:01 +0000
3+++ lib/lp/registry/templates/distroseries-localdifferences.pt 2011-09-01 09:23:34 +0000
4@@ -85,12 +85,12 @@
5 upgrade view/actions/byname/field.actions.upgrade|nothing">
6 <input class="button" type="submit" disabled="true"
7 title="Please use a Javascript-enabled browser to sync packages."
8- tal:condition="python:sync and sync.available"
9+ tal:condition="python:sync and sync.available()"
10 tal:attributes="value sync/label;
11 name sync/__name__;
12 id sync/__name__;" />
13 <input class="button" type="submit"
14- tal:condition="python: upgrade and upgrade.available"
15+ tal:condition="python: upgrade and upgrade.available()"
16 tal:attributes="value upgrade/label;
17 name upgrade/__name__;
18 id upgrade/__name__;" />