~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: 2010-12-30 20:41:06 UTC
  • mfrom: (12143.2.9 bug-516317)
  • Revision ID: launchpad@pqm.canonical.com-20101230204106-mlgmnxg2bqvbcr0t
[r=henninge][ui=henninge][bug=516317] Sanitize and unify translation
        settings pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    'ProductConfigureBase',
16
16
    'ProductConfigureAnswersView',
17
17
    'ProductConfigureBlueprintsView',
18
 
    'ProductConfigureTranslationsView',
19
18
    'ProductDownloadFileMixin',
20
19
    'ProductDownloadFilesView',
21
20
    'ProductEditPeopleView',
525
524
        summary = 'Specify where bugs are tracked for this project'
526
525
        return Link('+configure-bugtracker', text, summary, icon='edit')
527
526
 
528
 
    @enabled_with_permission('launchpad.Edit')
 
527
    @enabled_with_permission('launchpad.TranslationsAdmin')
529
528
    def configure_translations(self):
530
529
        text = 'Configure translations'
531
530
        summary = 'Allow users to submit translations for this project'
1432
1431
    usage_fieldname = 'blueprints_usage'
1433
1432
 
1434
1433
 
1435
 
class ProductConfigureTranslationsView(ProductConfigureBase):
1436
 
    """View class to configure the Launchpad Translations for a project."""
1437
 
 
1438
 
    label = "Configure translations"
1439
 
    usage_fieldname = 'translations_usage'
1440
 
 
1441
 
 
1442
1434
class ProductConfigureAnswersView(ProductConfigureBase):
1443
1435
    """View class to configure the Launchpad Answers for a project."""
1444
1436