~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
<!-- Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
     GNU Affero General Public License version 3 (see the file LICENSE).
-->

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    xmlns:xmlrpc="http://namespaces.zope.org/xmlrpc"
    xmlns:webservice="http://namespaces.canonical.com/webservice"
    xmlns:lp="http://namespaces.canonical.com/lp"
    i18n_domain="launchpad">

  <include package=".browser"/>
  <include file="vocabularies.zcml"/>

  <publisher
      name="translations"
      factory="lp.translations.publisher.translations_request_publication_factory"/>

  <utility
      component="lp.translations.publisher.TranslationsLayer"
      provides="zope.publisher.interfaces.browser.IDefaultBrowserLayer"
      name="translations" />

    <lp:help-folder folder="help" name="+help-translations" />

    <class
        class="lp.translations.model.vpotexport.VPOTExport">
        <allow
            interface="lp.translations.interfaces.vpotexport.IVPOTExport"/>
    </class>
    <class
        class="lp.translations.model.potranslation.POTranslation">
        <allow
            interface="lp.translations.interfaces.potranslation.IPOTranslation"/>
    </class>
    <securedutility
        class="lp.translations.model.vpoexport.VPOExportSet"
        provides="lp.translations.interfaces.vpoexport.IVPOExportSet">
        <allow
            interface="lp.translations.interfaces.vpoexport.IVPOExportSet"/>
    </securedutility>
    <class
        class="lp.translations.model.vpoexport.VPOExport">
        <allow
            interface="lp.translations.interfaces.vpoexport.IVPOExport"/>
    </class>
    <class
        class="lp.translations.model.pomsgid.POMsgID">
        <allow
            interface="lp.translations.interfaces.pomsgid.IPOMsgID"/>
    </class>
    <securedutility
        class="lp.systemhomes.RosettaApplication"
        provides="lp.translations.interfaces.translations.IRosettaApplication">
        <allow
            interface="lp.translations.interfaces.translations.IRosettaApplication"/>
    </securedutility>

    <!-- TranslationsOverview -->

    <class
        class="lp.translations.model.translationsoverview.TranslationsOverview">
        <allow
            interface="lp.translations.interfaces.translationsoverview.ITranslationsOverview"/>
    </class>
    <securedutility
        class="lp.translations.model.translationsoverview.TranslationsOverview"
        provides="lp.translations.interfaces.translationsoverview.ITranslationsOverview">
        <allow
            interface="lp.translations.interfaces.translationsoverview.ITranslationsOverview"/>
    </securedutility>

    <!-- ITranslationsPerson -->

    <class
        class="lp.translations.model.translationsperson.TranslationsPerson">
        <allow
            interface="lp.translations.interfaces.translationsperson.ITranslationsPerson"/>
        <require
            permission="launchpad.Edit"
            set_attributes="translations_relicensing_agreement"/>
    </class>
    <adapter
        for="lp.registry.interfaces.person.IPerson"
        provides="lp.translations.interfaces.translationsperson.ITranslationsPerson"
        factory="lp.translations.model.translationsperson.TranslationsPerson"
        trusted="yes"/>
    <class
        class="lp.translations.utilities.translation_common_format.TranslationMessageData">
        <allow
            interface="lp.translations.interfaces.translationcommonformat.ITranslationMessageData"/>
    </class>
    <securedutility
        class="lp.translations.utilities.translation_export.TranslationExporter"
        provides="lp.translations.interfaces.translationexporter.ITranslationExporter">
        <allow
            interface="lp.translations.interfaces.translationexporter.ITranslationExporter"/>
    </securedutility>
    <class
        class="lp.translations.utilities.translation_export.ExportedTranslationFile">
        <allow
            interface="lp.translations.interfaces.translationexporter.IExportedTranslationFile"/>
    </class>

    <!-- Translation file export plugins -->

    <class
        class="lp.translations.utilities.gettext_po_exporter.GettextPOExporter">
        <allow
            interface="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"/>
    </class>
    <subscriber
        for="lp.translations.interfaces.translationexporter.ITranslationExporter"
        provides="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"
        factory="lp.translations.utilities.gettext_po_exporter.GettextPOExporter"/>
    <class
        class="lp.translations.utilities.gettext_mo_exporter.GettextMOExporter">
        <allow
            interface="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"/>
    </class>
    <subscriber
        for="lp.translations.interfaces.translationexporter.ITranslationExporter"
        provides="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"
        factory="lp.translations.utilities.gettext_mo_exporter.GettextMOExporter"/>
    <class
        class="lp.translations.utilities.kde_po_exporter.KdePOExporter">
        <allow
            interface="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"/>
    </class>
    <subscriber
        for="lp.translations.interfaces.translationexporter.ITranslationExporter"
        provides="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"
        factory="lp.translations.utilities.kde_po_exporter.KdePOExporter"/>
    <class
        class="lp.translations.utilities.xpi_po_exporter.XPIPOExporter">
        <allow
            interface="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"/>
    </class>
    <subscriber
        for="lp.translations.interfaces.translationexporter.ITranslationExporter"
        provides="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"
        factory="lp.translations.utilities.xpi_po_exporter.XPIPOExporter"/>
    <class
        class="lp.translations.utilities.gettext_po_exporter.GettextPOChangedExporter">
        <allow
            interface="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"/>
    </class>
    <subscriber
        for="lp.translations.interfaces.translationexporter.ITranslationExporter"
        provides="lp.translations.interfaces.translationexporter.ITranslationFormatExporter"
        factory="lp.translations.utilities.gettext_po_exporter.GettextPOChangedExporter"/>
    <subscriber
        for="lp.registry.interfaces.packaging.IPackaging
             lazr.lifecycle.interfaces.IObjectEvent"
        handler=".model.translationsharingjob.schedule_packaging_job" />
    <subscriber
        for="lp.translations.interfaces.potemplate.IPOTemplate
             lazr.lifecycle.interfaces.IObjectModifiedEvent"
        handler=".model.translationsharingjob.schedule_potemplate_job" />

        <!-- TranslatorSet -->

        <securedutility
            class="lp.translations.model.translator.TranslatorSet"
            provides="lp.translations.interfaces.translator.ITranslatorSet">
            <allow
                interface="lp.translations.interfaces.translator.ITranslatorSet"/>
        </securedutility>

        <!-- Translator -->

        <class
            class="lp.translations.model.translator.Translator">
            <allow
                interface="lp.translations.interfaces.translator.ITranslator"/>
            <require
                permission="launchpad.Admin"
                set_schema="lp.translations.interfaces.translator.IAdminTranslator"/>
            <require
                permission="launchpad.Edit"
                set_schema="lp.translations.interfaces.translator.IEditTranslator"/>
        </class>

        <!-- TranslationImportQueue -->

        <class
            class="lp.translations.model.translationimportqueue.TranslationImportQueueEntry">
            <allow
                interface="lp.translations.interfaces.translationimportqueue.ITranslationImportQueueEntry"/>
            <require
                permission="launchpad.Edit"
                set_schema="lp.translations.interfaces.translationimportqueue.ITranslationImportQueueEntry"/>
        </class>

        <!-- TranslationImportQueue -->

        <securedutility
            class="lp.translations.model.translationimportqueue.TranslationImportQueue"
            provides="lp.translations.interfaces.translationimportqueue.ITranslationImportQueue">
            <allow
                interface="lp.translations.interfaces.translationimportqueue.ITranslationImportQueue"/>
        </securedutility>
    <class
        class="lp.translations.model.pofiletranslator.POFileTranslator">
        <allow
            interface="lp.translations.interfaces.pofiletranslator.IPOFileTranslator"/>
    </class>
    <class
        class="lp.translations.model.pofiletranslator.POFileTranslatorSet">
        <allow
            interface="lp.translations.interfaces.pofiletranslator.IPOFileTranslatorSet"/>
    </class>
    <securedutility
        class="lp.translations.model.pofiletranslator.POFileTranslatorSet"
        provides="lp.translations.interfaces.pofiletranslator.IPOFileTranslatorSet">
        <allow
            interface="lp.translations.interfaces.pofiletranslator.IPOFileTranslatorSet"/>
    </securedutility>

    <!-- Breadcrumbs for DistroSeries, Distribution, ProductSeries, Product,
         ProjectGroup, TranslationsPerson -->
    <adapter
        name="translations"
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.registry.interfaces.distribution.IDistribution"
        factory="lp.translations.browser.translations.TranslationsVHostBreadcrumb"
        permission="zope.Public"/>
    <adapter
        name="translations"
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.registry.interfaces.distroseries.IDistroSeries"
        factory="lp.translations.browser.translations.TranslationsVHostBreadcrumb"
        permission="zope.Public"/>
    <adapter
        name="translations"
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.registry.interfaces.product.IProduct"
        factory="lp.translations.browser.translations.TranslationsVHostBreadcrumb"
        permission="zope.Public"/>
    <adapter
        name="translations"
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.registry.interfaces.productseries.IProductSeries"
        factory="lp.translations.browser.translations.TranslationsVHostBreadcrumb"
        permission="zope.Public"/>
    <adapter
        name="translations"
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.registry.interfaces.projectgroup.IProjectGroup"
        factory="lp.translations.browser.translations.TranslationsVHostBreadcrumb"
        permission="zope.Public"/>
    <adapter
        name="translations"
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.registry.interfaces.person.IPerson"
        factory="lp.translations.browser.translations.TranslationsVHostBreadcrumb"
        permission="zope.Public"/>

    <!-- Subscribers to registry objects -->

    <subscriber
        for="lp.registry.interfaces.product.IProduct zope.lifecycleevent.interfaces.IObjectModifiedEvent"
        handler="lp.translations.subscribers.product_modified"/>

    <!-- DistroSeriesLanguage and Dummy -->

    <adapter
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.translations.interfaces.distroserieslanguage.IDistroSeriesLanguage"
        factory="lp.translations.browser.translations.TranslationsLanguageBreadcrumb"
        permission="zope.Public"/>

    <class
        class="lp.translations.model.distroserieslanguage.DistroSeriesLanguage">
        <allow
            interface="lp.translations.interfaces.distroserieslanguage.IDistroSeriesLanguage"/>
    </class>
    <class
        class="lp.translations.model.distroserieslanguage.DummyDistroSeriesLanguage">
        <allow
            interface="lp.translations.interfaces.distroserieslanguage.IDistroSeriesLanguage"/>
    </class>

    <!-- DistroSeriesLanguageSet -->

    <securedutility
        class="lp.translations.model.distroserieslanguage.DistroSeriesLanguageSet"
        provides="lp.translations.interfaces.distroserieslanguage.IDistroSeriesLanguageSet">
        <allow
            interface="lp.translations.interfaces.distroserieslanguage.IDistroSeriesLanguageSet"/>
    </securedutility>
    <securedutility
        class="lp.translations.utilities.translation_import.TranslationImporter"
        provides="lp.translations.interfaces.translationimporter.ITranslationImporter">
        <allow
            interface="lp.translations.interfaces.translationimporter.ITranslationImporter"/>
    </securedutility>
    <class
        class="lp.translations.utilities.gettext_po_parser.POHeader">
        <allow
            interface="lp.translations.interfaces.translationcommonformat.ITranslationHeaderData"/>
        <require
            permission="zope.Public"
            set_schema="lp.translations.interfaces.translationcommonformat.ITranslationHeaderData"/>
    </class>
    <class
        class="lp.translations.utilities.gettext_po_importer.GettextPOImporter">
        <allow
            interface="lp.translations.interfaces.translationimporter.ITranslationFormatImporter"/>
    </class>
    <subscriber
        for="lp.translations.interfaces.translationimportqueue.ITranslationImportQueueEntry"
        provides="lp.translations.interfaces.translationimporter.ITranslationFormatImporter"
        factory="lp.translations.utilities.gettext_po_importer.GettextPOImporter"/>
    <class
        class="lp.translations.utilities.xpi_header.XpiHeader">
        <allow
            interface="lp.translations.interfaces.translationcommonformat.ITranslationHeaderData"/>
        <require
            permission="zope.Public"
            set_schema="lp.translations.interfaces.translationcommonformat.ITranslationHeaderData"/>
    </class>
    <class
        class="lp.translations.utilities.kde_po_importer.KdePOImporter">
        <allow
            interface="lp.translations.interfaces.translationimporter.ITranslationFormatImporter"/>
    </class>
    <class
        class="lp.translations.utilities.mozilla_xpi_importer.MozillaXpiImporter">
        <allow
            interface="lp.translations.interfaces.translationimporter.ITranslationFormatImporter"/>
    </class>
    <subscriber
        for="lp.translations.interfaces.translationimportqueue.ITranslationImportQueueEntry"
        provides="lp.translations.interfaces.translationimporter.ITranslationFormatImporter"
        factory="lp.translations.utilities.mozilla_xpi_importer.MozillaXpiImporter"/>

        <!-- PO File -->

    <adapter
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.translations.interfaces.pofile.IPOFile"
        factory="lp.translations.browser.translations.TranslationsLanguageBreadcrumb"
        permission="zope.Public"/>
        <class
            class="lp.translations.model.pofile.POFile">
            <allow
                interface="lp.translations.interfaces.pofile.IPOFile"/>
            <require
                permission="launchpad.Edit"
                set_schema="lp.translations.interfaces.pofile.IPOFile"/>
        </class>
        <adapter
            name="all_messages"
            for="lp.translations.interfaces.pofile.IPOFile"
            provides="lp.translations.interfaces.translationcommonformat.ITranslationFileData"
            factory="lp.translations.model.pofile.POFileToTranslationFileDataAdapter"/>
        <adapter
            name="changed_messages"
            for="lp.translations.interfaces.pofile.IPOFile"
            provides="lp.translations.interfaces.translationcommonformat.ITranslationFileData"
            factory="lp.translations.model.pofile.POFileToChangedFromPackagedAdapter"/>

        <!-- Dummy PO File -->

        <class
            class="lp.translations.model.pofile.DummyPOFile">
            <allow
                interface="lp.translations.interfaces.pofile.IPOFile"/>
        </class>

        <!-- POFileSet -->

        <securedutility
            class="lp.translations.model.pofile.POFileSet"
            provides="lp.translations.interfaces.pofile.IPOFileSet">
            <allow
                interface="lp.translations.interfaces.pofile.IPOFileSet"/>
        </securedutility>
    <class
        class="lp.translations.model.translationtemplateitem.TranslationTemplateItem">
        <allow
            interface="lp.translations.interfaces.translationtemplateitem.ITranslationTemplateItem"/>
        <require permission="launchpad.Admin" set_attributes="potmsgset"/>
    </class>

    <!-- ProductSeriesLanguage -->

    <adapter
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.translations.interfaces.productserieslanguage.IProductSeriesLanguage"
        factory="lp.translations.browser.translations.TranslationsLanguageBreadcrumb"
        permission="zope.Public"/>

    <class
        class="lp.translations.model.productserieslanguage.ProductSeriesLanguage">
        <allow
            interface="lp.translations.interfaces.productserieslanguage.IProductSeriesLanguage"/>
    </class>

    <!-- ProductSeriesLanguageSet -->

    <securedutility
        class="lp.translations.model.productserieslanguage.ProductSeriesLanguageSet"
        provides="lp.translations.interfaces.productserieslanguage.IProductSeriesLanguageSet">
        <allow
            interface="lp.translations.interfaces.productserieslanguage.IProductSeriesLanguageSet"/>
    </securedutility>

    <!-- TranslatedLanguage -->
        <class
            class="lp.translations.model.translatedlanguage.POFilesByPOTemplates">
            <allow
                interface="lp.translations.interfaces.translatedlanguage.IPOFilesByPOTemplates"/>
        </class>

    <!-- POTemplate -->
        <class
            class="lp.translations.model.potemplate.POTemplate">
            <allow
                interface="lp.translations.interfaces.potemplate.IPOTemplate"/>
            <require
                permission="launchpad.TranslationsAdmin"
                set_attributes="
                    name owner priority description translation_domain path
                    iscurrent languagepack sourcepackagename"/>
            <require
                permission="launchpad.Admin"
                set_attributes="
                    productseries distroseries
                    sourcepackageversion binarypackagename
                    source_file_format source_file date_last_updated
                    from_sourcepackagename header"/>
        </class>
        <adapter
           provides="lp.services.webapp.interfaces.IBreadcrumb"
           for="lp.translations.interfaces.potemplate.IPOTemplate"
           factory="lp.translations.browser.potemplate.POTemplateBreadcrumb"
           permission="zope.Public"/>
        <adapter
            name="all_messages"
            for="lp.translations.interfaces.potemplate.IPOTemplate"
            provides="lp.translations.interfaces.translationcommonformat.ITranslationFileData"
            factory="lp.translations.model.potemplate.POTemplateToTranslationFileDataAdapter"/>

        <!-- TranslationTemplatesCollection -->
        <class
            class="lp.translations.model.potemplate.TranslationTemplatesCollection">
            <allow
                interface="lp.translations.interfaces.potemplate.ITranslationTemplatesCollection"/>
        </class>

        <!-- POTemplateSet -->

        <securedutility
            class="lp.translations.model.potemplate.POTemplateSet"
            provides="lp.translations.interfaces.potemplate.IPOTemplateSet">
            <allow
                interface="lp.translations.interfaces.potemplate.IPOTemplateSet"/>
        </securedutility>
        <class
            class="lp.translations.model.potemplate.POTemplateSubset">
            <require
                permission="zope.Public"
                interface="lp.translations.interfaces.potemplate.IPOTemplateSubset"
                set_attributes="sourcepackagename distroseries"/>
        </class>
        <class
            class="lp.translations.model.potemplate.POTemplateSharingSubset">
            <require
                permission="zope.Public"
                interface="lp.translations.interfaces.potemplate.IPOTemplateSharingSubset"/>
        </class>

        <!-- TranslationGroup -->

        <class
            class="lp.translations.model.translationgroup.TranslationGroup">
            <allow
                interface="lp.translations.interfaces.translationgroup.ITranslationGroup"/>
            <require
                permission="launchpad.Edit"
                set_schema="lp.translations.interfaces.translationgroup.ITranslationGroup"/>
        </class>
        <adapter
            provides="lp.services.webapp.interfaces.IBreadcrumb"
            for="lp.translations.interfaces.translationgroup.ITranslationGroup"
            factory="lp.services.webapp.breadcrumb.TitleBreadcrumb"
            permission="zope.Public"/>

        <!-- TranslationGroupSet -->

        <securedutility
            class="lp.translations.model.translationgroup.TranslationGroupSet"
            provides="lp.translations.interfaces.translationgroup.ITranslationGroupSet">
            <allow
                interface="lp.translations.interfaces.translationgroup.ITranslationGroupSet"/>
        </securedutility>
        <adapter
            provides="lp.services.webapp.interfaces.IBreadcrumb"
            for="lp.translations.interfaces.translationgroup.ITranslationGroupSet"
            factory="lp.translations.browser.translationgroup.TranslationGroupSetBreadcrumb"
            permission="zope.Public"/>
    <class
        class="lp.translations.model.potmsgset.POTMsgSet">
        <allow
            interface="lp.translations.interfaces.potmsgset.IPOTMsgSet"/>

        <!-- The following require is needed only for tests that use
             IPOTMsgSets outside of its usual security proxy environment. -->

        <require
            permission="launchpad.Admin"
            set_attributes="commenttext sourcecomment filereferences flagscomment"/>
    </class>
    <class
        class="lp.translations.model.translatablemessage.TranslatableMessage">
        <allow
            interface="lp.translations.interfaces.translatablemessage.ITranslatableMessage"/>
    </class>

        <!-- LanguagePack -->

        <class
            class="lp.translations.model.languagepack.LanguagePack">
            <allow
                interface="lp.translations.interfaces.languagepack.ILanguagePack"/>
            <require
                permission="launchpad.LanguagePacksAdmin"
                set_schema="lp.translations.interfaces.languagepack.ILanguagePack"/>
        </class>

        <!-- LanguagePackSet -->

        <securedutility
            class="lp.translations.model.languagepack.LanguagePackSet"
            provides="lp.translations.interfaces.languagepack.ILanguagePackSet">
            <allow
                interface="lp.translations.interfaces.languagepack.ILanguagePackSet"/>
        </securedutility>
        <class
            class="lp.translations.model.translationmessage.TranslationMessage">
            <allow
                interface="lp.translations.interfaces.translationmessage.ITranslationMessage"/>
            <require
                permission="launchpad.Edit"
                set_schema="lp.translations.interfaces.translationmessage.ITranslationMessage"/>
        </class>

        <!-- Dummy Translation Message. It's a read only class. -->

        <class
            class="lp.translations.model.translationmessage.DummyTranslationMessage">
            <allow
                interface="lp.translations.interfaces.translationmessage.ITranslationMessage"/>
        </class>


        <!-- TranslationMessageSet -->

        <securedutility
            class="lp.translations.model.translationmessage.TranslationMessageSet"
            provides="lp.translations.interfaces.translationmessage.ITranslationMessageSet">
            <allow
                interface="lp.translations.interfaces.translationmessage.ITranslationMessageSet"/>
        </securedutility>

        <!-- TranslationSideTraits -->
        <class class="lp.translations.model.side.TranslationSideTraits">
          <allow interface="lp.translations.interfaces.side.ITranslationSideTraits"/>
        </class>

        <!-- TranslationSideTraitsSet -->
        <securedutility
            class="lp.translations.model.side.TranslationSideTraitsSet"
            provides="lp.translations.interfaces.side.ITranslationSideTraitsSet">
            <allow
              interface="lp.translations.interfaces.side.ITranslationSideTraitsSet"/>
        </securedutility>
    <adapter
        provides="lp.services.webapp.interfaces.IBreadcrumb"
        for="lp.translations.interfaces.customlanguagecode.ICustomLanguageCode"
        factory="lp.translations.browser.customlanguagecode.CustomLanguageCodeBreadcrumb"
        permission="zope.Public"/>
    <class
        class="lp.translations.model.customlanguagecode.CustomLanguageCode">
        <allow
            interface="lp.translations.interfaces.customlanguagecode.ICustomLanguageCode"/>
    </class>
    <securedutility
        class="lp.translations.model.poexportrequest.POExportRequestSet"
        provides="lp.translations.interfaces.poexportrequest.IPOExportRequestSet">
        <allow
            interface="lp.translations.interfaces.poexportrequest.IPOExportRequestSet"/>
    </securedutility>

    <!-- TranslationTemplateBuildJob -->
    <class
        class="lp.translations.model.translationtemplatesbuildjob.TranslationTemplatesBuildJob">
        <allow
            interface="lp.buildmaster.interfaces.buildfarmbranchjob.IBuildFarmBranchJob"/>
        <allow
            interface="lp.buildmaster.interfaces.buildfarmjob.IBuildFarmJobOld"/>
    </class>
    <securedutility
        component="lp.translations.model.translationtemplatesbuildjob.TranslationTemplatesBuildJob"
        provides="lp.translations.interfaces.translationtemplatesbuildjob.ITranslationTemplatesBuildJobSource">
        <allow interface="lp.translations.interfaces.translationtemplatesbuildjob.ITranslationTemplatesBuildJobSource"/>
    </securedutility>
    <securedutility
        component='lp.translations.model.translationpackagingjob.TranslationPackagingJob'
        provides='lp.translations.interfaces.translationpackagingjob.ITranslationPackagingJobSource'
    >
        <allow
        interface='lp.translations.interfaces.translationpackagingjob.ITranslationPackagingJobSource'/>
    </securedutility>
    <class
        class="lp.translations.model.translationpackagingjob.TranslationMergeJob">
        <allow interface='lp.services.job.interfaces.job.IRunnableJob'/>
    </class>
    <class
        class="lp.translations.model.translationpackagingjob.TranslationSplitJob">
        <allow interface='lp.services.job.interfaces.job.IRunnableJob'/>
    </class>
    <class
        class="lp.translations.model.translationpackagingjob.TranslationTemplateChangeJob">
        <allow interface='lp.services.job.interfaces.job.IRunnableJob'/>
    </class>
    <utility
        component="lp.translations.model.translationtemplatesbuildjob.TranslationTemplatesBuildJob"
        provides="lp.buildmaster.interfaces.buildfarmjob.IBuildFarmJob"
        name="TRANSLATIONTEMPLATESBUILD"/>

    <!-- TranslationTemplatesBuild -->
    <class
        class="lp.translations.model.translationtemplatesbuild.TranslationTemplatesBuild">
        <require permission="launchpad.View" interface="lp.translations.interfaces.translationtemplatesbuild.ITranslationTemplatesBuild"/>
        <!-- This is needed for BuildManager to run. The permission isn't
             important; launchpad.Edit isn't actually held by anybody.
             Inspired by the similar change for SourcePackageRecipeBuild. -->
        <require permission="launchpad.Edit"
            set_attributes="builder date_finished date_started log status" />

    </class>
    <securedutility
        component="lp.translations.model.translationtemplatesbuild.TranslationTemplatesBuild"
        provides="lp.translations.interfaces.translationtemplatesbuild.ITranslationTemplatesBuildSource">
        <allow interface="lp.translations.interfaces.translationtemplatesbuild.ITranslationTemplatesBuildSource"/>
    </securedutility>
    <securedutility
        component="lp.translations.model.translationtemplatesbuild.TranslationTemplatesBuild"
        provides="lp.buildmaster.interfaces.buildfarmjob.ISpecificBuildFarmJobSource"
        name="TRANSLATIONTEMPLATESBUILD">
        <allow interface="lp.buildmaster.interfaces.buildfarmjob.ISpecificBuildFarmJobSource"/>
    </securedutility>

    <!-- TranslationTemplateBuildBehavior -->
    <class
        class="lp.translations.model.translationtemplatesbuildbehavior.TranslationTemplatesBuildBehavior">
        <allow
            interface="lp.buildmaster.interfaces.buildfarmjobbehavior.IBuildFarmJobBehavior"/>
    </class>

    <adapter
        provides="lp.buildmaster.interfaces.buildfarmjobbehavior.IBuildFarmJobBehavior"
        for="lp.translations.model.translationtemplatesbuildjob.TranslationTemplatesBuildJob"
        factory="lp.translations.model.translationtemplatesbuildbehavior.TranslationTemplatesBuildBehavior"
        />

  <webservice:register module="lp.translations.interfaces.webservice" />

  <class
      class="lp.translations.model.pofilestatsjob.POFileStatsJob">
      <allow interface='lp.services.job.interfaces.job.IRunnableJob'/>
  </class>
  <utility
      component="lp.translations.model.pofilestatsjob.POFileStatsJob"
      provides="lp.translations.interfaces.pofilestatsjob.IPOFileStatsJobSource"
      />

</configure>