~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/configure.zcml

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-11-27 22:12:39 UTC
  • mfrom: (14391.1.4 facet-everything)
  • Revision ID: launchpad@pqm.canonical.com-20111127221239-ob31sd2aw9feo9xm
[r=lifeless][no-qa] Deduplicate ZCML facet specifications a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
        for="lp.translations.interfaces.potemplate.IPOTemplate
159
159
             lazr.lifecycle.interfaces.IObjectModifiedEvent"
160
160
        handler=".model.translationsharingjob.schedule_potemplate_job" />
161
 
    <facet
162
 
        facet="translations">
163
161
 
164
162
        <!-- TranslatorSet -->
165
163
 
183
181
                permission="launchpad.Edit"
184
182
                set_schema="lp.translations.interfaces.translator.IEditTranslator"/>
185
183
        </class>
186
 
    </facet>
187
 
    <facet
188
 
        facet="translations">
189
184
 
190
185
        <!-- TranslationImportQueue -->
191
186
 
206
201
            <allow
207
202
                interface="lp.translations.interfaces.translationimportqueue.ITranslationImportQueue"/>
208
203
        </securedutility>
209
 
    </facet>
210
204
    <class
211
205
        class="lp.translations.model.pofiletranslator.POFileTranslator">
212
206
        <allow
349
343
        for="lp.translations.interfaces.pofile.IPOFile"
350
344
        factory="lp.translations.browser.translations.TranslationsLanguageBreadcrumb"
351
345
        permission="zope.Public"/>
352
 
    <facet
353
 
        facet="translations">
354
346
        <class
355
347
            class="lp.translations.model.pofile.POFile">
356
348
            <allow
386
378
            <allow
387
379
                interface="lp.translations.interfaces.pofile.IPOFileSet"/>
388
380
        </securedutility>
389
 
    </facet>
390
381
    <class
391
382
        class="lp.translations.model.translationtemplateitem.TranslationTemplateItem">
392
383
        <allow
418
409
    </securedutility>
419
410
 
420
411
    <!-- TranslatedLanguage -->
421
 
    <facet
422
 
        facet="translations">
423
412
        <class
424
413
            class="lp.translations.model.translatedlanguage.POFilesByPOTemplates">
425
414
            <allow
426
415
                interface="lp.translations.interfaces.translatedlanguage.IPOFilesByPOTemplates"/>
427
416
        </class>
428
 
    </facet>
429
417
 
430
418
    <!-- POTemplate -->
431
 
    <facet
432
 
        facet="translations">
433
419
        <class
434
420
            class="lp.translations.model.potemplate.POTemplate">
435
421
            <allow
486
472
                permission="zope.Public"
487
473
                interface="lp.translations.interfaces.potemplate.IPOTemplateSharingSubset"/>
488
474
        </class>
489
 
    </facet>
490
 
    <facet
491
 
        facet="translations">
492
475
 
493
476
        <!-- TranslationGroup -->
494
477
 
519
502
            for="lp.translations.interfaces.translationgroup.ITranslationGroupSet"
520
503
            factory="lp.translations.browser.translationgroup.TranslationGroupSetBreadcrumb"
521
504
            permission="zope.Public"/>
522
 
    </facet>
523
505
    <class
524
506
        class="lp.translations.model.potmsgset.POTMsgSet">
525
507
        <allow
537
519
        <allow
538
520
            interface="lp.translations.interfaces.translatablemessage.ITranslatableMessage"/>
539
521
    </class>
540
 
    <facet
541
 
        facet="translations">
542
522
 
543
523
        <!-- LanguagePack -->
544
524
 
559
539
            <allow
560
540
                interface="lp.translations.interfaces.languagepack.ILanguagePackSet"/>
561
541
        </securedutility>
562
 
    </facet>
563
 
    <facet
564
 
        facet="translations">
565
542
        <class
566
543
            class="lp.translations.model.translationmessage.TranslationMessage">
567
544
            <allow
601
578
            <allow
602
579
              interface="lp.translations.interfaces.side.ITranslationSideTraitsSet"/>
603
580
        </securedutility>
604
 
    </facet>
605
581
    <adapter
606
582
        provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
607
583
        for="lp.translations.interfaces.customlanguagecode.ICustomLanguageCode"