~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Danilo Segan
  • Date: 2011-04-22 14:02:29 UTC
  • mto: This revision was merged to the branch mainline in revision 12910.
  • Revision ID: danilo@canonical.com-20110422140229-zhq4d4c2k8jpglhf
Ignore hidden files when building combined JS file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!-- Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
<!-- Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
2
2
     GNU Affero General Public License version 3 (see the file LICENSE).
3
3
-->
4
4
 
122
122
      provides="lp.code.interfaces.branchcollection.IBranchCollection"
123
123
      factory="lp.code.adapters.branchcollection.branch_collection_for_product"/>
124
124
  <adapter
125
 
      for="lp.registry.interfaces.personproduct.IPersonProduct"
126
 
      provides="lp.code.interfaces.branchcollection.IBranchCollection"
127
 
      factory="lp.code.adapters.branchcollection.branch_collection_for_person_product"/>
128
 
  <adapter
129
125
      for="lp.registry.interfaces.projectgroup.IProjectGroup"
130
126
      provides="lp.code.interfaces.branchcollection.IBranchCollection"
131
127
      factory="lp.code.adapters.branchcollection.branch_collection_for_project"/>
197
193
    <allow interface="lp.code.interfaces.branchpuller.IBranchPuller"/>
198
194
  </securedutility>
199
195
  <securedutility
200
 
      class="lp.systemhomes.BazaarApplication"
201
 
      provides="lp.code.interfaces.codehosting.IBazaarApplication">
202
 
    <allow interface="lp.code.interfaces.codehosting.IBazaarApplication"/>
 
196
      class="canonical.launchpad.systemhomes.BazaarApplication"
 
197
      provides="canonical.launchpad.interfaces.launchpad.IBazaarApplication">
 
198
    <allow interface="canonical.launchpad.interfaces.launchpad.IBazaarApplication"/>
203
199
  </securedutility>
204
200
 
205
201
  <!-- pages for the bazaar application -->
206
202
 
207
203
  <xmlrpc:view
208
 
      for="lp.code.interfaces.codehosting.IBazaarApplication"
 
204
      for="canonical.launchpad.interfaces.launchpad.IBazaarApplication"
209
205
      interface="lp.code.xmlrpc.branch.IBranchSetAPI"
210
206
      class="lp.code.xmlrpc.branch.BranchSetAPI"
211
207
      permission="launchpad.AnyPerson"/>
212
208
  <xmlrpc:view
213
 
      for="lp.code.interfaces.codehosting.IBazaarApplication"
 
209
      for="canonical.launchpad.interfaces.launchpad.IBazaarApplication"
214
210
      interface="lp.code.xmlrpc.branch.IPublicCodehostingAPI"
215
211
      class="lp.code.xmlrpc.branch.PublicCodehostingAPI"
216
212
      permission="zope.Public"/>
245
241
                    date_created
246
242
                    date_review_requested
247
243
                    date_reviewed
 
244
                    review_diff
248
245
                    next_preview_diff_job
249
246
                    preview_diff
250
247
                    getIncrementalDiffs
266
263
    <require
267
264
        permission="launchpad.Edit"
268
265
        set_attributes="description whiteboard merged_revno commit_message
269
 
                        root_message_id prerequisite_branch"
 
266
                        root_message_id review_diff prerequisite_branch"
270
267
        attributes="
271
268
                    deleteProposal
272
269
                    setStatus
290
287
  <!-- Branch Merge Proposal Jobs -->
291
288
 
292
289
  <class class="lp.code.model.branchmergeproposaljob.CreateMergeProposalJob">
293
 
    <allow interface="lp.services.messages.interfaces.message.IMessageJob"/>
 
290
    <allow interface="canonical.launchpad.interfaces.message.IMessageJob"/>
294
291
    <allow interface="lp.code.interfaces.branchmergeproposal.ICreateMergeProposalJob"/>
295
292
  </class>
296
293
  <securedutility
377
374
  <subscriber
378
375
      for="lp.code.interfaces.branchmergeproposal.IBranchMergeProposal
379
376
           lp.code.interfaces.event.INewBranchMergeProposalEvent"
380
 
      handler="lp.code.subscribers.karma.branch_merge_proposed"/>
 
377
      handler="canonical.launchpad.subscribers.karma.branch_merge_proposed"/>
381
378
  <subscriber
382
379
      for="lp.code.interfaces.branchmergeproposal.IBranchMergeProposal
383
380
           lp.code.interfaces.event.IBranchMergeProposalStatusChangeEvent"
384
 
      handler="lp.code.subscribers.karma.branch_merge_status_changed"/>
 
381
      handler="canonical.launchpad.subscribers.karma.branch_merge_status_changed"/>
385
382
  <adapter
386
383
      for="lp.code.interfaces.branchmergeproposal.IBranchMergeProposal"
387
 
      provides="lp.services.webapp.interfaces.IPrimaryContext"
 
384
      provides="canonical.launchpad.webapp.interfaces.IPrimaryContext"
388
385
      factory="lp.code.browser.branchmergeproposal.BranchMergeProposalPrimaryContext"/>
389
386
 
390
387
  <!-- hierarchy -->
397
394
  <class
398
395
      class="lp.code.model.seriessourcepackagebranch.SeriesSourcePackageBranch">
399
396
    <allow interface="lp.code.interfaces.seriessourcepackagebranch.ISeriesSourcePackageBranch"/>
 
397
    <require
 
398
        permission="launchpad.Edit"
 
399
        set_schema="lp.code.interfaces.seriessourcepackagebranch.ISeriesSourcePackageBranch"/>
400
400
  </class>
401
401
 
402
402
  <securedutility
403
403
     class="lp.code.model.seriessourcepackagebranch.SeriesSourcePackageBranchSet"
 
404
     provides="lp.code.interfaces.seriessourcepackagebranch.IMakeOfficialBranchLinks">
 
405
    <allow interface="lp.code.interfaces.seriessourcepackagebranch.IMakeOfficialBranchLinks"/>
 
406
    <require
 
407
       permission="launchpad.Edit"
 
408
       interface="lp.code.interfaces.seriessourcepackagebranch.IMakeOfficialBranchLinks"/>
 
409
  </securedutility>
 
410
  <securedutility
 
411
     class="lp.code.model.seriessourcepackagebranch.SeriesSourcePackageBranchSet"
404
412
     provides="lp.code.interfaces.seriessourcepackagebranch.IFindOfficialBranchLinks">
405
413
    <allow interface="lp.code.interfaces.seriessourcepackagebranch.IFindOfficialBranchLinks"/>
406
414
  </securedutility>
446
454
  </class>
447
455
  <adapter
448
456
      for="lp.code.interfaces.branchsubscription.IBranchSubscription"
449
 
      provides="lp.services.webapp.interfaces.IPrimaryContext"
 
457
      provides="canonical.launchpad.webapp.interfaces.IPrimaryContext"
450
458
      factory="lp.code.browser.branchsubscription.BranchSubscriptionPrimaryContext"/>
451
459
 
452
460
  <!-- Branch -->
454
462
  <class class="lp.code.model.branch.Branch">
455
463
    <require
456
464
        permission="launchpad.View"
457
 
        interface="lp.app.interfaces.launchpad.IPrivacy
 
465
        interface="canonical.launchpad.interfaces.launchpad.IPrivacy
458
466
                   lp.code.interfaces.branch.IBranchAnyone
459
467
                   lp.code.interfaces.branch.IBranchEditableAttributes
460
468
                   lp.code.interfaces.branch.IBranchPublic
480
488
  </class>
481
489
  <adapter
482
490
      for="lp.code.interfaces.branch.IBranch"
483
 
      provides="lp.services.webapp.interfaces.ILaunchpadContainer"
484
 
      factory="lp.code.publisher.LaunchpadBranchContainer"/>
 
491
      provides="canonical.launchpad.webapp.interfaces.ILaunchpadContainer"
 
492
      factory="canonical.launchpad.components.launchpadcontainer.LaunchpadBranchContainer"/>
485
493
  <adapter
486
494
      for="lp.code.interfaces.branch.IBranch"
487
 
      provides="lp.app.browser.badge.IHasBadges"
 
495
      provides="canonical.launchpad.webapp.badge.IHasBadges"
488
496
      factory="lp.code.browser.branchlisting.BranchBadges"/>
489
497
  <adapter
490
498
      for="lp.code.interfaces.branch.IBranch"
491
 
      provides="lp.services.webapp.interfaces.IPrimaryContext"
 
499
      provides="canonical.launchpad.webapp.interfaces.IPrimaryContext"
492
500
      factory="lp.code.model.branchtarget.branch_to_target"/>
493
501
 
494
502
  <subscriber
495
503
      for="lp.code.interfaces.branch.IBranch
496
504
           lazr.lifecycle.interfaces.IObjectCreatedEvent"
497
 
      handler="lp.code.subscribers.karma.branch_created"/>
 
505
      handler="canonical.launchpad.subscribers.karma.branch_created"/>
498
506
  <subscriber
499
507
      for="lp.codehosting.scanner.events.ITipChanged"
500
508
      handler="lp.codehosting.scanner.email.queue_tip_changed_email_jobs"/>
625
633
      factory="lp.code.model.branchtarget.product_series_to_branch_target"/>
626
634
  <adapter
627
635
      for="lp.code.interfaces.branchtarget.IBranchTarget"
628
 
      provides="lp.services.webapp.interfaces.ICanonicalUrlData"
 
636
      provides="canonical.launchpad.webapp.interfaces.ICanonicalUrlData"
629
637
      factory="lp.code.model.branchtarget.get_canonical_url_data_for_target"/>
630
638
  <class class="lp.code.model.branchrevision.BranchRevision">
631
639
    <allow interface="lp.code.interfaces.branchrevision.IBranchRevision"/>
644
652
  <subscriber
645
653
      for="lp.code.interfaces.codereviewcomment.ICodeReviewComment
646
654
           lp.code.interfaces.event.INewCodeReviewCommentEvent"
647
 
      handler="lp.code.subscribers.karma.code_review_comment_added"/>
 
655
      handler="canonical.launchpad.subscribers.karma.code_review_comment_added"/>
648
656
  <adapter
649
657
      for="lp.code.interfaces.codereviewcomment.ICodeReviewComment"
650
 
      provides="lp.services.webapp.interfaces.IPrimaryContext"
 
658
      provides="canonical.launchpad.webapp.interfaces.IPrimaryContext"
651
659
      factory="lp.code.browser.codereviewcomment.CodeReviewCommentPrimaryContext"/>
652
660
 
653
661
  <!-- hierarchy -->
655
663
  <class class="lp.code.model.branchjob.BranchJob">
656
664
    <allow interface="lp.code.interfaces.branchjob.IBranchJob"/>
657
665
  </class>
 
666
  <class class="lp.code.model.branchjob.BranchDiffJob">
 
667
    <allow interface="lp.code.interfaces.branchjob.IBranchDiffJob"/>
 
668
    <allow interface="lp.code.interfaces.branchjob.IBranchJob"/>
 
669
  </class>
658
670
  <class class="lp.code.model.branchjob.RevisionMailJob">
659
671
    <allow interface="lp.code.interfaces.branchjob.IRevisionMailJob"/>
660
672
    <allow interface="lp.code.interfaces.branchjob.IBranchJob"/>
672
684
    <allow interface="lp.code.interfaces.branchjob.IBranchJob"/>
673
685
  </class>
674
686
  <securedutility
 
687
      component="lp.code.model.branchjob.BranchDiffJob"
 
688
      provides="lp.code.interfaces.branchjob.IBranchDiffJobSource">
 
689
    <allow interface="lp.code.interfaces.branchjob.IBranchDiffJobSource"/>
 
690
  </securedutility>
 
691
  <securedutility
675
692
      component="lp.code.model.branchjob.RevisionMailJob"
676
693
      provides="lp.code.interfaces.branchjob.IRevisionMailJobSource">
677
694
    <allow interface="lp.code.interfaces.branchjob.IRevisionMailJobSource"/>
731
748
 
732
749
  </class>
733
750
  <adapter
734
 
      provides="lp.services.webapp.interfaces.IBreadcrumb"
 
751
      provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
735
752
      for="lp.code.interfaces.codeimport.ICodeImportSet"
736
753
      factory="lp.code.browser.codeimport.CodeImportSetBreadcrumb"
737
754
      permission="zope.Public"/>
739
756
      for="lp.code.interfaces.codeimport.ICodeImport
740
757
           lazr.lifecycle.interfaces.IObjectCreatedEvent"
741
758
      handler="lp.code.mail.codeimport.new_import"/>
 
759
  <facet
 
760
      facet="branches"/>
742
761
 
743
762
  <!-- CodeImportSet -->
744
763
 
857
876
  </securedutility>
858
877
  <class class="lp.code.model.branchjob.BranchScanJob">
859
878
    <allow interface="lp.services.job.interfaces.job.IRunnableJob" />
860
 
    <allow interface="lp.code.interfaces.branchjob.IBranchJob" />
861
879
  </class>
862
880
 
863
881
  <!-- Linked branches -->
866
884
  <adapter factory="lp.code.model.linkedbranch.PackageLinkedBranch" />
867
885
  <adapter factory="lp.code.model.linkedbranch.DistributionPackageLinkedBranch" />
868
886
 
869
 
  <lp:help-folder folder="help" name="+help-code" />
 
887
  <lp:help-folder
 
888
      folder="help" type="lp.code.publisher.CodeLayer" />
870
889
 
871
890
  <!-- Diffs -->
872
891
  <class class="lp.code.model.diff.Diff">
876
895
    <allow interface="lp.code.interfaces.diff.IDiff" />
877
896
    <allow interface="lp.code.interfaces.diff.IIncrementalDiff" />
878
897
  </class>
 
898
  <class class="lp.code.model.diff.StaticDiff">
 
899
    <allow interface="lp.code.interfaces.diff.IStaticDiff" />
 
900
  </class>
879
901
  <class class="lp.code.model.diff.PreviewDiff">
880
902
    <require
881
903
        permission="launchpad.View"
882
904
        interface="lp.code.interfaces.diff.IPreviewDiff"/>
883
905
  </class>
 
906
  <securedutility
 
907
      component="lp.code.model.diff.StaticDiff"
 
908
      provides="lp.code.interfaces.diff.IStaticDiffSource" >
 
909
    <allow
 
910
      interface="lp.code.interfaces.diff.IStaticDiffSource" />
 
911
  </securedutility>
884
912
 
885
913
  <!-- SourcePackageRecipe -->
886
914
 
905
933
    <allow interface="lp.code.interfaces.sourcepackagerecipebuild.ISourcePackageRecipeBuildSource"/>
906
934
  </securedutility>
907
935
 
908
 
  <securedutility
909
 
     component="lp.code.model.sourcepackagerecipebuild.SourcePackageRecipeBuild"
910
 
     provides="lp.buildmaster.interfaces.buildfarmjob.ISpecificBuildFarmJobSource"
911
 
     name="RECIPEBRANCHBUILD">
912
 
    <allow interface="lp.buildmaster.interfaces.buildfarmjob.ISpecificBuildFarmJobSource"/>
913
 
  </securedutility>
914
 
 
915
936
  <class
916
937
     class="lp.code.model.sourcepackagerecipebuild.SourcePackageRecipeBuildJob">
917
938
    <require permission="launchpad.View" interface="lp.code.interfaces.sourcepackagerecipebuild.ISourcePackageRecipeBuildJob"/>
973
994
        provides="lp.buildmaster.interfaces.buildfarmjob.IBuildFarmJob"/>
974
995
 
975
996
  <webservice:register module="lp.code.interfaces.webservice" />
 
997
    <adapter
 
998
        provides="lp.buildmaster.interfaces.buildfarmjob.ISpecificBuildFarmJob"
 
999
        for="lp.buildmaster.interfaces.buildfarmjob.IBuildFarmJob"
 
1000
        factory="lp.code.model.sourcepackagerecipebuild.get_recipe_build_for_build_farm_job"
 
1001
        name="RECIPEBRANCHBUILD"
 
1002
        permission="zope.Public"/>
976
1003
 
977
1004
  <adapter
978
1005
    factory="lp.code.browser.sourcepackagerecipe.distroseries_renderer"