~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/product.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-20 13:01:44 UTC
  • mfrom: (13980.3.33 page-title-0)
  • Revision ID: launchpad@pqm.canonical.com-20110920130144-y6hc061u53bbokux
[rs=sinzui][bug=853919] Move page_titles into views.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    'ProductOverviewMenu',
27
27
    'ProductPackagesView',
28
28
    'ProductPackagesPortletView',
 
29
    'ProductPurchaseSubscriptionView',
29
30
    'ProductRdfView',
30
31
    'ProductReviewLicenseView',
31
32
    'ProductSeriesSetView',
1028
1029
            self.context, self.request, self.user)
1029
1030
 
1030
1031
    @property
 
1032
    def page_title(self):
 
1033
        return '%s in Launchpad' % self.context.displayname
 
1034
 
 
1035
    @property
1031
1036
    def show_license_status(self):
1032
1037
        return self.context.license_status != LicenseStatus.OPEN_SOURCE
1033
1038
 
1184
1189
            header='Does the license qualifiy the project for free hosting?')
1185
1190
 
1186
1191
 
 
1192
class ProductPurchaseSubscriptionView(ProductView):
 
1193
    """View the instructions to purchase a commercial subscription."""
 
1194
    page_title = 'Purchase subscription'
 
1195
 
 
1196
 
1187
1197
class ProductPackagesView(LaunchpadView):
1188
1198
    """View for displaying product packaging"""
1189
1199